blob: 0d2224f8c1c833159e579414af087bd9c90c52ea (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.container.jdisc;
import com.google.inject.AbstractModule;
import com.google.inject.Inject;
import com.yahoo.container.jdisc.messagebus.SessionCache;
import com.yahoo.jrt.ListenFailedException;
/**
* TODO: The contents of this class can probably be moved into ConfiguredApplication
*/
public class ContainerDiscApplication {
private SessionCache sessionCache;
@Inject
public ContainerDiscApplication(String configId) throws ListenFailedException {
sessionCache = new SessionCache(configId);
}
AbstractModule getMbusBindings() {
return new AbstractModule() {
@Override
protected void configure() {
bind(SessionCache.class).toInstance(sessionCache);
}
};
}
}
|