Class 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 Detail

      • SecurityScopeContext

        public SecurityScopeContext()
    • Method Detail

      • 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>