org.jvnet.hk2.internal
Class SingletonContext
java.lang.Object
org.jvnet.hk2.internal.SingletonContext
- All Implemented Interfaces:
- Context<Singleton>
@Singleton
public class SingletonContext
- extends java.lang.Object
- implements Context<Singleton>
- Author:
- jwells
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getScope
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
- Specified by:
getScope in interface Context<Singleton>
findOrCreate
public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor,
ServiceHandle<?> root)
- Specified by:
findOrCreate in interface Context<Singleton>
containsKey
public boolean containsKey(ActiveDescriptor<?> descriptor)
- Specified by:
containsKey in interface Context<Singleton>
isActive
public boolean isActive()
- Specified by:
isActive in interface Context<Singleton>
supportsNullCreation
public boolean supportsNullCreation()
- Specified by:
supportsNullCreation in interface Context<Singleton>
shutdown
public void shutdown()
- Specified by:
shutdown in interface Context<Singleton>
destroyOne
public void destroyOne(ActiveDescriptor<?> one)
- Release one system descriptor
- Specified by:
destroyOne in interface Context<Singleton>
- Parameters:
one - The descriptor to release (may not be null). Further, the cache MUST be set
Copyright © 2013 Oracle Corporation. All Rights Reserved.