Package org.jvnet.hk2.internal
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>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConcurrentHashMap
<ThreadSpecificObject<ActiveDescriptor<?>>, Object> private final ActiveDescriptor
<?> private final InstantiationServiceImpl
private final ServiceLocator
private static final Object
-
Constructor Summary
ConstructorsConstructorDescriptionFactoryCreator
(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) Creates an instance of the given typevoid
Disposes the given instanceprivate ServiceHandle
<Factory<T>> Returns all the injectees needed prior to creating this objecttoString()
-
Field Details
-
MAP_VALUE
-
cycleFinder
-
locator
-
factoryDescriptor
-
instantiationService
-
-
Constructor Details
-
FactoryCreator
FactoryCreator(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor)
-
-
Method Details
-
getInjectees
Description copied from interface:Creator
Returns all the injectees needed prior to creating this object- Specified by:
getInjectees
in interfaceCreator<T>
- Returns:
- a List of all the injectees
-
getFactoryHandle
-
create
Description copied from interface:Creator
Creates an instance of the given type- Specified by:
create
in interfaceCreator<T>
- Returns:
- an instance of the given type
- Throws:
MultiException
- if the creator threw an exception during construction
-
dispose
Description copied from interface:Creator
Disposes the given instance -
toString
-