Class FactoryCreator<T>

java.lang.Object
org.jvnet.hk2.internal.FactoryCreator<T>
Type Parameters:
T - The thing this factory is producing
All Implemented Interfaces:
Creator<T>

public class FactoryCreator<T> extends Object implements Creator<T>
Author:
jwells
  • Method Details

    • getInjectees

      public List<org.glassfish.hk2.api.Injectee> getInjectees()
      Description copied from interface: Creator
      Returns all the injectees needed prior to creating this object
      Specified by:
      getInjectees in interface Creator<T>
      Returns:
      a List of all the injectees
    • create

      public T create(org.glassfish.hk2.api.ServiceHandle<?> root, SystemDescriptor<?> eventThrower) throws org.glassfish.hk2.api.MultiException
      Description copied from interface: Creator
      Creates an instance of the given type
      Specified by:
      create in interface Creator<T>
      Returns:
      an instance of the given type
      Throws:
      org.glassfish.hk2.api.MultiException - if the creator threw an exception during construction
    • dispose

      public void dispose(T instance)
      Description copied from interface: Creator
      Disposes the given instance
      Specified by:
      dispose in interface Creator<T>
      Parameters:
      instance - removes the given instance
    • toString

      public String toString()
      Overrides:
      toString in class Object