com.sun.hk2.component
Class FactoryCreator<T>
java.lang.Object
com.sun.hk2.component.AbstractInhabitantImpl<T>
com.sun.hk2.component.AbstractCreatorImpl<T>
com.sun.hk2.component.FactoryCreator<T>
- All Implemented Interfaces:
- Holder<T>, Creator<T>, Inhabitant<T>
public class FactoryCreator<T>
- extends AbstractCreatorImpl<T>
Creates an object from Factory.
- Author:
- Kohsuke Kawaguchi
| Nested classes/interfaces inherited from interface com.sun.hk2.component.Holder |
Holder.Impl<T> |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jvnet.hk2.component.Creator |
get |
FactoryCreator
public FactoryCreator(java.lang.Class<T> type,
java.lang.Class<? extends Factory> factory,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
FactoryCreator
public FactoryCreator(java.lang.Class<T> type,
Inhabitant<? extends Factory> factory,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
create
public T create(Inhabitant onBehalfOf)
throws ComponentException
- Description copied from interface:
Creator
- Creates a new instance.
The caller is supposed to call the
Creator.initialize(Object, Inhabitant)
right away. This 2-phase initialization allows us to handle
cycle references correctly.
- Throws:
ComponentException
Copyright © 2011 Oracle Corporation. All Rights Reserved.