Class ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T>

java.lang.Object
org.glassfish.hk2.utilities.DescriptorImpl
org.glassfish.hk2.utilities.AbstractActiveDescriptor<T>
org.glassfish.hk2.internal.ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T>
All Implemented Interfaces:
Externalizable, Serializable, ActiveDescriptor<T>, Descriptor, SingleCache<T>
Enclosing class:
ActiveDescriptorBuilderImpl

private static class ActiveDescriptorBuilderImpl.BuiltActiveDescriptor<T> extends AbstractActiveDescriptor<T>
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization
      See Also:
    • implementationClass

      private Class<?> implementationClass
    • implementationType

      private Type implementationType
  • Constructor Details

  • Method Details

    • getImplementationClass

      public Class<?> getImplementationClass()
      Description copied from interface: ActiveDescriptor
      The implementation class that should be used to generate new instances of this descriptor.

      If the class returned is a Factory, then the factory is used to create instances. In this case the system will get an instance of the factory and use it to create the instances

      Returns:
      The class that directly implements the contract types, or the class that is the factory for an object that implements the contract types
    • getImplementationType

      public Type getImplementationType()
      Description copied from interface: ActiveDescriptor
      If known the Type of the implementation. If unknown will return the same as ActiveDescriptor.getImplementationClass()
      Returns:
      The type of the implementation or the implementation class
    • create

      public T create(ServiceHandle<?> root)
      Description copied from interface: ActiveDescriptor
      Creates an instance of the ActiveDescriptor. All of the Injectee's must be created prior to instantiation, and associated with the ExtendedProvider so that they can be destroyed properly
      Parameters:
      root - The root service handle, which can be used to associated all the PerLookup objects with this creation
      Returns:
      An instance of this ActiveDescriptor
    • setImplementationType

      public void setImplementationType(Type t)
      Overrides:
      setImplementationType in class AbstractActiveDescriptor<T>