Package com.yahoo.jdisc.core
Class ActiveContainer
java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.core.ActiveContainer
- All Implemented Interfaces:
CurrentContainer
,SharedResource
- Author:
- Simon Thoresen Hult, bjorncs
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource
SharedResource.Debug
-
Field Summary
Fields inherited from interface com.yahoo.jdisc.SharedResource
DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclientBindings
(String setName) protected void
destroy()
This method signals that this AbstractResource can dispose of any internal resources, and commence with shut down of any internal threads.com.google.inject.Injector
com.yahoo.jdisc.core.ContainerSnapshot
newReference
(URI uri, Object context) Returns a reference to the currently activeContainer
.serverBindings
(String setName) shutdown()
Methods inherited from class com.yahoo.jdisc.AbstractResource
currentState, refer, refer, release, retainCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.jdisc.service.CurrentContainer
newReference
-
Constructor Details
-
ActiveContainer
-
-
Method Details
-
destroy
protected void destroy()Description copied from class:AbstractResource
This method signals that this AbstractResource can dispose of any internal resources, and commence with shut down of any internal threads. This will be called once the reference count of this resource reaches zero.
- Overrides:
destroy
in classAbstractResource
-
shutdown
-
guiceInjector
public com.google.inject.Injector guiceInjector() -
serverProviders
-
serverBindings
-
serverBindings
-
clientBindings
-
clientBindings
-
newReference
Description copied from interface:CurrentContainer
Returns a reference to the currently activeContainer
. UntilSharedResource.release()
has been called, the Container can not shut down.- Specified by:
newReference
in interfaceCurrentContainer
- Parameters:
uri
- The identifier used to match this Request to an appropriateClientProvider
orRequestHandler
. The hostname must be "localhost" or a fully qualified domain name.context
- that can be attached for reference tracking- Returns:
- A reference to the current Container.
-