public interface Creator<T>
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
|
List<Injectee> |
getInjectees()
Returns all the injectees needed prior
to creating this object
|
List<Injectee> getInjectees()
T create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) throws MultiException
MultiException
- if the creator threw an exception during constructionvoid dispose(T instance) throws MultiException
instance
- removes the given instanceMultiException
- if the underlying creator threw an exception during destructionCopyright © 2009-2017, Oracle and/or its affiliates. All Rights Reserved.