Class SystemDescriptor<T>

java.lang.Object
org.jvnet.hk2.internal.SystemDescriptor<T>
Type Parameters:
T - The type from the cache
All Implemented Interfaces:
org.glassfish.hk2.api.ActiveDescriptor<T>, org.glassfish.hk2.api.Descriptor, org.glassfish.hk2.api.SingleCache<T>, Closeable

public class SystemDescriptor<T> extends Object implements org.glassfish.hk2.api.ActiveDescriptor<T>, Closeable
Author:
jwells
  • Method Details

    • getImplementation

      public String getImplementation()
      Specified by:
      getImplementation in interface org.glassfish.hk2.api.Descriptor
    • getAdvertisedContracts

      public Set<String> getAdvertisedContracts()
      Specified by:
      getAdvertisedContracts in interface org.glassfish.hk2.api.Descriptor
    • getScope

      public String getScope()
      Specified by:
      getScope in interface org.glassfish.hk2.api.Descriptor
    • getName

      public String getName()
      Specified by:
      getName in interface org.glassfish.hk2.api.Descriptor
    • getQualifiers

      public Set<String> getQualifiers()
      Specified by:
      getQualifiers in interface org.glassfish.hk2.api.Descriptor
    • getDescriptorType

      public org.glassfish.hk2.api.DescriptorType getDescriptorType()
      Specified by:
      getDescriptorType in interface org.glassfish.hk2.api.Descriptor
    • getDescriptorVisibility

      public org.glassfish.hk2.api.DescriptorVisibility getDescriptorVisibility()
      Specified by:
      getDescriptorVisibility in interface org.glassfish.hk2.api.Descriptor
    • getMetadata

      public Map<String,List<String>> getMetadata()
      Specified by:
      getMetadata in interface org.glassfish.hk2.api.Descriptor
    • getLoader

      public org.glassfish.hk2.api.HK2Loader getLoader()
      Specified by:
      getLoader in interface org.glassfish.hk2.api.Descriptor
    • getRanking

      public int getRanking()
      Specified by:
      getRanking in interface org.glassfish.hk2.api.Descriptor
    • isProxiable

      public Boolean isProxiable()
      Specified by:
      isProxiable in interface org.glassfish.hk2.api.Descriptor
    • isProxyForSameScope

      public Boolean isProxyForSameScope()
      Specified by:
      isProxyForSameScope in interface org.glassfish.hk2.api.Descriptor
    • getClassAnalysisName

      public String getClassAnalysisName()
      Specified by:
      getClassAnalysisName in interface org.glassfish.hk2.api.Descriptor
    • setRanking

      public int setRanking(int ranking)
      Specified by:
      setRanking in interface org.glassfish.hk2.api.Descriptor
    • getServiceId

      public Long getServiceId()
      Specified by:
      getServiceId in interface org.glassfish.hk2.api.Descriptor
    • getCache

      public T getCache()
      Specified by:
      getCache in interface org.glassfish.hk2.api.SingleCache<T>
    • isCacheSet

      public boolean isCacheSet()
      Specified by:
      isCacheSet in interface org.glassfish.hk2.api.SingleCache<T>
    • setCache

      public void setCache(T cacheMe)
      Specified by:
      setCache in interface org.glassfish.hk2.api.SingleCache<T>
    • releaseCache

      public void releaseCache()
      Specified by:
      releaseCache in interface org.glassfish.hk2.api.SingleCache<T>
    • isReified

      public boolean isReified()
      Specified by:
      isReified in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getImplementationClass

      public Class<?> getImplementationClass()
      Specified by:
      getImplementationClass in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getImplementationType

      public Type getImplementationType()
      Specified by:
      getImplementationType in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getContractTypes

      public Set<Type> getContractTypes()
      Specified by:
      getContractTypes in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getScopeAsAnnotation

      public Annotation getScopeAsAnnotation()
      Specified by:
      getScopeAsAnnotation in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getScopeAnnotation

      public Class<? extends Annotation> getScopeAnnotation()
      Specified by:
      getScopeAnnotation in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getQualifierAnnotations

      public Set<Annotation> getQualifierAnnotations()
      Specified by:
      getQualifierAnnotations in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getInjectees

      public List<org.glassfish.hk2.api.Injectee> getInjectees()
      Specified by:
      getInjectees in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getFactoryServiceId

      public Long getFactoryServiceId()
      Specified by:
      getFactoryServiceId in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getFactoryLocatorId

      public Long getFactoryLocatorId()
      Specified by:
      getFactoryLocatorId in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • create

      public T create(org.glassfish.hk2.api.ServiceHandle<?> root)
      Specified by:
      create in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • dispose

      public void dispose(T instance)
      Specified by:
      dispose in interface org.glassfish.hk2.api.ActiveDescriptor<T>
    • getLocatorId

      public Long getLocatorId()
      Specified by:
      getLocatorId in interface org.glassfish.hk2.api.Descriptor
    • close

      public boolean close()
      Description copied from interface: Closeable
      Idempotent close method. Returns true if the instance had already been closed
      Specified by:
      close in interface Closeable
      Returns:
      true if the object had already been closed, false otherwise
    • isClosed

      public boolean isClosed()
      Description copied from interface: Closeable
      Returns true if the instance has been closed
      Specified by:
      isClosed in interface Closeable
      Returns:
      true if the object is closed
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object