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 InstantiationServiceImplprivate final ServiceLocatorprivate 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 typevoidDisposes 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:CreatorReturns all the injectees needed prior to creating this object- Specified by:
getInjecteesin interfaceCreator<T>- Returns:
- a List of all the injectees
-
getFactoryHandle
-
create
Description copied from interface:CreatorCreates an instance of the given type- Specified by:
createin interfaceCreator<T>- Returns:
- an instance of the given type
- Throws:
MultiException- if the creator threw an exception during construction
-
dispose
Description copied from interface:CreatorDisposes the given instance -
toString
-