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 Details

    • SecurityScopeContext

      public SecurityScopeContext()
  • Method Details

    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface org.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 interface org.glassfish.hk2.api.Context<SecurityScope>
    • containsKey

      public boolean containsKey(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
      Specified by:
      containsKey in interface org.glassfish.hk2.api.Context<SecurityScope>
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface org.glassfish.hk2.api.Context<SecurityScope>
    • supportsNullCreation

      public boolean supportsNullCreation()
      Specified by:
      supportsNullCreation in interface org.glassfish.hk2.api.Context<SecurityScope>
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface org.glassfish.hk2.api.Context<SecurityScope>
    • destroyOne

      public void destroyOne(org.glassfish.hk2.api.ActiveDescriptor<?> descriptor)
      Specified by:
      destroyOne in interface org.glassfish.hk2.api.Context<SecurityScope>