java.lang.Object
org.jvnet.hk2.internal.SingletonContext
- All Implemented Interfaces:
Context<jakarta.inject.Singleton>
@Singleton
public class SingletonContext
extends Object
implements Context<jakarta.inject.Singleton>
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(ActiveDescriptor<?> descriptor) voiddestroyOne(ActiveDescriptor<?> one) Release one system descriptor<T> TfindOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root) Class<? extends Annotation>getScope()booleanisActive()voidshutdown()boolean
-
Method Details
-
getScope
-
findOrCreate
- Specified by:
findOrCreatein interfaceContext<jakarta.inject.Singleton>
-
containsKey
- Specified by:
containsKeyin interfaceContext<jakarta.inject.Singleton>
-
isActive
public boolean isActive() -
supportsNullCreation
public boolean supportsNullCreation()- Specified by:
supportsNullCreationin interfaceContext<jakarta.inject.Singleton>
-
shutdown
public void shutdown() -
destroyOne
Release one system descriptor- Specified by:
destroyOnein interfaceContext<jakarta.inject.Singleton>- Parameters:
one- The descriptor to release (may not be null). Further, the cache MUST be set
-