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 boolean
containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
void
destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
<T> T
findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<T> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root)
Class<? extends Annotation>
getScope()
boolean
isActive()
void
shutdown()
boolean
supportsNullCreation()
-
-
-
Method Detail
-
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope
in 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:
findOrCreate
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
containsKey
public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
- Specified by:
containsKey
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
isActive
public boolean isActive()
- Specified by:
isActive
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
supportsNullCreation
public boolean supportsNullCreation()
- Specified by:
supportsNullCreation
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
shutdown
public void shutdown()
- Specified by:
shutdown
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
destroyOne
public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
- Specified by:
destroyOne
in interfaceorg.glassfish.hk2.api.Context<SecurityScope>
-
-