Class ClazzCreator<T>

  • Type Parameters:
    T - The type of object this creator creates
    All Implemented Interfaces:
    Creator<T>

    public class ClazzCreator<T>
    extends Object
    implements Creator<T>
    Author:
    jwells
    • Method Detail

      • create

        public T create​(ServiceHandle<?> root,
                        SystemDescriptor<?> eventThrower)
        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
      • 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
      • getInjectees

        public List<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