- All Known Implementing Classes:
ClazzCreator,FactoryCreator
public interface Creator<T>
An internal interface that allows us to have the
factory and class implementations
- Author:
- jwells
-
Method Summary
Modifier and TypeMethodDescriptioncreate(org.glassfish.hk2.api.ServiceHandle<?> root, SystemDescriptor<?> eventThrower) Creates an instance of the given typevoidDisposes the given instanceList<org.glassfish.hk2.api.Injectee>Returns all the injectees needed prior to creating this object
-
Method Details
-
getInjectees
List<org.glassfish.hk2.api.Injectee> getInjectees()Returns all the injectees needed prior to creating this object- Returns:
- a List of all the injectees
-
create
T create(org.glassfish.hk2.api.ServiceHandle<?> root, SystemDescriptor<?> eventThrower) throws org.glassfish.hk2.api.MultiException Creates an instance of the given type- Returns:
- an instance of the given type
- Throws:
org.glassfish.hk2.api.MultiException- if the creator threw an exception during construction
-
dispose
Disposes the given instance- Parameters:
instance- removes the given instance- Throws:
org.glassfish.hk2.api.MultiException- if the underlying creator threw an exception during destruction
-