Package com.yahoo.jdisc.application
Class ContainerBuilder
java.lang.Object
com.yahoo.jdisc.application.ContainerBuilder
This is the inactive, mutable Container
. Because it requires references to the application internals, it
should always be injected by guice or created by calling ContainerActivator.newContainerBuilder()
. Once the
builder has been configured, it is activated by calling ContainerActivator.activateContainer(ContainerBuilder)
. You may use the setAppContext(Object)
method to
attach an arbitrary object to a Container, which will be available in the corresponding DeactivatedContainer
.
- Author:
- Simon Thoresen Hult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclientBindings
(String setName) <T> T
getInstance
(com.google.inject.Key<T> key) <T> T
getInstance
(Class<T> type) static <T> Class<T>
safeClassCast
(Class<T> baseClass, Class<?> someClass) safeStringSplit
(Object obj, String delim) serverBindings
(String setName) void
setAppContext
(Object ctx)
-
Constructor Details
-
ContainerBuilder
-
-
Method Details
-
setAppContext
-
appContext
-
guiceModules
-
getInstance
public <T> T getInstance(com.google.inject.Key<T> key) -
getInstance
-
serverProviders
-
serverBindings
-
clientBindings
-
serverBindings
-
clientBindings
-
activateServerBindings
-
activateClientBindings
-
safeClassCast
-
safeStringSplit
-