Class SingletonContext

java.lang.Object
org.jvnet.hk2.internal.SingletonContext
All Implemented Interfaces:
Context<jakarta.inject.Singleton>

@Singleton public class SingletonContext extends Object implements Context<jakarta.inject.Singleton>
Author:
jwells
  • Method Details

    • getScope

      public Class<? extends Annotation> getScope()
      Specified by:
      getScope in interface Context<jakarta.inject.Singleton>
    • findOrCreate

      public <T> T findOrCreate(ActiveDescriptor<T> activeDescriptor, ServiceHandle<?> root)
      Specified by:
      findOrCreate in interface Context<jakarta.inject.Singleton>
    • containsKey

      public boolean containsKey(ActiveDescriptor<?> descriptor)
      Specified by:
      containsKey in interface Context<jakarta.inject.Singleton>
    • isActive

      public boolean isActive()
      Specified by:
      isActive in interface Context<jakarta.inject.Singleton>
    • supportsNullCreation

      public boolean supportsNullCreation()
      Specified by:
      supportsNullCreation in interface Context<jakarta.inject.Singleton>
    • shutdown

      public void shutdown()
      Specified by:
      shutdown in interface Context<jakarta.inject.Singleton>
    • destroyOne

      public void destroyOne(ActiveDescriptor<?> one)
      Release one system descriptor
      Specified by:
      destroyOne in interface Context<jakarta.inject.Singleton>
      Parameters:
      one - The descriptor to release (may not be null). Further, the cache MUST be set