java.lang.Object
org.glassfish.hk2.runlevel.RunLevelContext
@Service
@Named("DefaultRunLevelContext")
@Visibility(LOCAL)
public class RunLevelContext
extends Object
implements Context<RunLevel>
- Author:
- jwells
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name under which this context will be advertised -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(ActiveDescriptor<?> descriptor) voiddestroyOne(ActiveDescriptor<?> descriptor) <U> UfindOrCreate(ActiveDescriptor<U> activeDescriptor, 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
-
findOrCreate
- Specified by:
findOrCreatein interfaceContext<RunLevel>
-
containsKey
- Specified by:
containsKeyin interfaceContext<RunLevel>
-
destroyOne
- Specified by:
destroyOnein interfaceContext<RunLevel>
-
supportsNullCreation
public boolean supportsNullCreation()- Specified by:
supportsNullCreationin interfaceContext<RunLevel>
-
isActive
public boolean isActive() -
shutdown
public void shutdown()
-