| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.ConcurrentHashMap<ThreadSpecificObject<ActiveDescriptor<?>>,java.lang.Object> |
cycleFinder |
private ActiveDescriptor<?> |
factoryDescriptor |
private InstantiationServiceImpl |
instantiationService |
private ServiceLocator |
locator |
private static java.lang.Object |
MAP_VALUE |
| Constructor and Description |
|---|
FactoryCreator(ServiceLocator locator,
ActiveDescriptor<?> factoryDescriptor) |
| Modifier and Type | Method and Description |
|---|---|
T |
create(ServiceHandle<?> root,
SystemDescriptor<?> eventThrower)
Creates an instance of the given type
|
void |
dispose(T instance)
Disposes the given instance
|
private ServiceHandle<Factory<T>> |
getFactoryHandle() |
java.util.List<Injectee> |
getInjectees()
Returns all the injectees needed prior
to creating this object
|
java.lang.String |
toString() |
private static final java.lang.Object MAP_VALUE
private final java.util.concurrent.ConcurrentHashMap<ThreadSpecificObject<ActiveDescriptor<?>>,java.lang.Object> cycleFinder
private final ServiceLocator locator
private final ActiveDescriptor<?> factoryDescriptor
private final InstantiationServiceImpl instantiationService
FactoryCreator(ServiceLocator locator, ActiveDescriptor<?> factoryDescriptor)
public java.util.List<Injectee> getInjectees()
CreatorgetInjectees in interface Creator<T>private ServiceHandle<Factory<T>> getFactoryHandle()
public T create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) throws MultiException
Creatorcreate in interface Creator<T>MultiException - if the creator threw an exception during constructionpublic void dispose(T instance)
Creatorpublic java.lang.String toString()
toString in class java.lang.Object