Class SecurityScopeContext
- java.lang.Object
-
- org.glassfish.security.services.common.SecurityScopeContext
-
- All Implemented Interfaces:
org.glassfish.hk2.api.Context<SecurityScope>
@Service @Singleton public class SecurityScopeContext extends Object implements org.glassfish.hk2.api.Context<SecurityScope>
The security context used to enable the scoping of security service instances.
-
-
Constructor Summary
Constructors Constructor Description SecurityScopeContext()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)voiddestroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)<T> TfindOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root)Class<? extends Annotation>getScope()booleanisActive()voidshutdown()booleansupportsNullCreation()
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScopein interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
findOrCreate
public <T> T findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root)- Specified by:
findOrCreatein interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
containsKey
public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
- Specified by:
containsKeyin interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
isActive
public boolean isActive()
- Specified by:
isActivein interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
supportsNullCreation
public boolean supportsNullCreation()
- Specified by:
supportsNullCreationin interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
shutdown
public void shutdown()
- Specified by:
shutdownin interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
destroyOne
public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
- Specified by:
destroyOnein interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
-