org.jvnet.hk2.internal
Interface Creator<T>

All Known Implementing Classes:
ClazzCreator, FactoryCreator

public interface Creator<T>

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

Author:
jwells

Method Summary
 InstanceLifecycleEventImpl create(ServiceHandle<?> root)
          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
 

Method Detail

getInjectees

List<Injectee> getInjectees()
Returns all the injectees needed prior to creating this object

Returns:

create

InstanceLifecycleEventImpl create(ServiceHandle<?> root)
                                  throws MultiException
Creates an instance of the given type

Returns:
an instance of the given type
Throws:
MultiException

dispose

void dispose(T instance)
Disposes the given instance

Parameters:
instance - removes the given instance


Copyright © 2013 Oracle Corporation. All Rights Reserved.