Top Description Methods
org.jvnet.hk2.internal

public Interface Creator<T>

Known Direct Implementers
org.jvnet.hk2.internal.FactoryCreator, org.jvnet.hk2.internal.ClazzCreator
Imports
java.util.List, org.glassfish.hk2.api.Injectee, .MultiException, .ServiceHandle

An internal interface that allows us to have the factory and class implementations
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

an instance of the given type
create
(ServiceHandle<?> root, SystemDescriptor<?> eventThrower)

Creates an instance of the given type

public void
dispose(T
removes the given instance
instance
)

Disposes the given instance

public List<Injectee>

Returns:

a List of all the injectees
getInjectees
()

Returns all the injectees needed prior to creating this object

Method Detail

createback to summary
public T create(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) throws MultiException

Creates an instance of the given type

Returns:T

an instance of the given type

Exceptions
MultiException:
if the creator threw an exception during construction
disposeback to summary
public void dispose(T instance) throws MultiException

Disposes the given instance

Parameters
instance:T

removes the given instance

Exceptions
MultiException:
if the underlying creator threw an exception during destruction
getInjecteesback to summary
public List<Injectee> getInjectees()

Returns all the injectees needed prior to creating this object

Returns:List<Injectee>

a List of all the injectees