java.lang.Object
org.glassfish.hk2.runlevel.RunLevelContext
- All Implemented Interfaces:
org.glassfish.hk2.api.Context<RunLevel>
@Service
@Named("DefaultRunLevelContext")
@Visibility(LOCAL)
public class RunLevelContext
extends Object
implements org.glassfish.hk2.api.Context<RunLevel>
This is the implementation of the
Context
for the RunLevel scope- Author:
- jwells
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name under which this context will be advertised -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) voiddestroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) <U> UfindOrCreate(org.glassfish.hk2.api.ActiveDescriptor<U> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root) Class<? extends Annotation>getScope()booleanisActive()voidshutdown()boolean
-
Field Details
-
CONTEXT_NAME
The name under which this context will be advertised- See Also:
-
-
Method Details
-
getScope
- Specified by:
getScopein interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
findOrCreate
public <U> U findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<U> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root) - Specified by:
findOrCreatein interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
containsKey
public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) - Specified by:
containsKeyin interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
destroyOne
public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor) - Specified by:
destroyOnein interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
supportsNullCreation
public boolean supportsNullCreation()- Specified by:
supportsNullCreationin interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceorg.glassfish.hk2.api.Context<RunLevel>
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceorg.glassfish.hk2.api.Context<RunLevel>
-