Class CrossOverDescriptor<T>

java.lang.Object
org.glassfish.hk2.utilities.DescriptorImpl
org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
org.glassfish.hk2.extras.hk2bridge.internal.CrossOverDescriptor<T>
All Implemented Interfaces:
Externalizable, Serializable, org.glassfish.hk2.api.ActiveDescriptor<T>, org.glassfish.hk2.api.Descriptor, org.glassfish.hk2.api.SingleCache<T>

public class CrossOverDescriptor<T> extends org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
Author:
jwells
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrossOverDescriptor(org.glassfish.hk2.api.ServiceLocator local, org.glassfish.hk2.api.ActiveDescriptor<T> localService)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.glassfish.hk2.api.ServiceHandle<?> root)
     
    void
    dispose(T instance)
     
     
     
     
     
     
    List<org.glassfish.hk2.api.Injectee>
     
     
    Class<? extends Annotation>
     
     
    boolean
    This method returns true if this descriptor has been reified (class loaded).
    void
     

    Methods inherited from class org.glassfish.hk2.utilities.AbstractActiveDescriptor

    addContractType, addQualifierAnnotation, equals, getCache, hashCode, isCacheSet, releaseCache, removeContractType, removeQualifierAnnotation, setCache, setFactoryId, setName, setReified, setScopeAnnotation, setScopeAsAnnotation

    Methods inherited from class org.glassfish.hk2.utilities.DescriptorImpl

    addAdvertisedContract, addMetadata, addMetadata, addQualifier, clearMetadata, descriptorEquals, getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, pretty, readExternal, readObject, removeAdvertisedContract, removeAllMetadata, removeMetadata, removeQualifier, setClassAnalysisName, setDescriptorType, setDescriptorVisibility, setImplementation, setLoader, setLocatorId, setMetadata, setProxiable, setProxyForSameScope, setRanking, setScope, setServiceId, toString, writeExternal, writeObject

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.glassfish.hk2.api.Descriptor

    getAdvertisedContracts, getClassAnalysisName, getDescriptorType, getDescriptorVisibility, getImplementation, getLoader, getLocatorId, getMetadata, getName, getQualifiers, getRanking, getScope, getServiceId, isProxiable, isProxyForSameScope, setRanking
  • Constructor Details

    • CrossOverDescriptor

      public CrossOverDescriptor(org.glassfish.hk2.api.ServiceLocator local, org.glassfish.hk2.api.ActiveDescriptor<T> localService)
  • Method Details

    • isReified

      public boolean isReified()
      This method returns true if this descriptor has been reified (class loaded). If this method returns false then the other methods in this interface will throw an IllegalStateException. Once this method returns true it may be
      Specified by:
      isReified in interface org.glassfish.hk2.api.ActiveDescriptor<T>
      Overrides:
      isReified in class org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
      Returns:
      true if this descriptor has been reified, false otherwise
    • getImplementationClass

      public Class<?> getImplementationClass()
    • getImplementationType

      public Type getImplementationType()
    • setImplementationType

      public void setImplementationType(Type t)
      Overrides:
      setImplementationType in class org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
    • getContractTypes

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

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

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

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

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

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

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

      public T create(org.glassfish.hk2.api.ServiceHandle<?> root)
    • dispose

      public void dispose(T instance)
      Specified by:
      dispose in interface org.glassfish.hk2.api.ActiveDescriptor<T>
      Overrides:
      dispose in class org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>