Class RunLevelContext

java.lang.Object
org.glassfish.hk2.runlevel.RunLevelContext
All Implemented Interfaces:
org.glassfish.hk2.api.Context<RunLevel>

@Service @Named("DefaultRunLevelContext") @Visibility(LOCAL) public class RunLevelContext extends Object implements org.glassfish.hk2.api.Context<RunLevel>
This is the implementation of the Context for the RunLevel scope
Author:
jwells
  • Field Details

    • CONTEXT_NAME

      public static final String CONTEXT_NAME
      The name under which this context will be advertised
      See Also:
  • Method Details

    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface org.glassfish.hk2.api.Context<RunLevel>
    • findOrCreate

      public <U> U findOrCreate(org.glassfish.hk2.api.ActiveDescriptor<U> activeDescriptor, org.glassfish.hk2.api.ServiceHandle<?> root)
      Specified by:
      findOrCreate in interface org.glassfish.hk2.api.Context<RunLevel>
    • containsKey

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

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

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

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

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