org.jvnet.hk2.internal
Class FactoryCreator<T>

java.lang.Object
  extended by org.jvnet.hk2.internal.FactoryCreator<T>
Type Parameters:
T - The thing this factory is producing
All Implemented Interfaces:
Creator<T>

public class FactoryCreator<T>
extends Object
implements Creator<T>

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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInjectees

public List<Injectee> getInjectees()
Description copied from interface: Creator
Returns all the injectees needed prior to creating this object

Specified by:
getInjectees in interface Creator<T>
Returns:

create

public InstanceLifecycleEventImpl create(ServiceHandle<?> root)
                                  throws MultiException
Description copied from interface: Creator
Creates an instance of the given type

Specified by:
create in interface Creator<T>
Returns:
an instance of the given type
Throws:
MultiException

dispose

public void dispose(T instance)
Description copied from interface: Creator
Disposes the given instance

Specified by:
dispose in interface Creator<T>
Parameters:
instance - removes the given instance


Copyright © 2013 Oracle Corporation. All Rights Reserved.