|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.hk2.component.AbstractInhabitantImpl<T>
com.sun.hk2.component.AbstractCreatorImpl<T>
com.sun.hk2.component.FactoryCreator<T>
public class FactoryCreator<T>
Creates an object from Factory.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.sun.hk2.component.Holder |
|---|
Holder.Impl<T> |
| Field Summary |
|---|
| Fields inherited from class com.sun.hk2.component.AbstractCreatorImpl |
|---|
habitat, type |
| Constructor Summary | |
|---|---|
FactoryCreator(Class<T> type,
Class<? extends Factory> factory,
Habitat habitat,
MultiMap<String,String> metadata)
|
|
FactoryCreator(Class<T> type,
Inhabitant<? extends Factory> factory,
Habitat habitat,
MultiMap<String,String> metadata)
|
|
| Method Summary | |
|---|---|
T |
create(Inhabitant onBehalfOf)
Creates a new instance. |
| Methods inherited from class com.sun.hk2.component.AbstractCreatorImpl |
|---|
createInjectionManager, get, initialize, inject, isInstantiated, metadata, release, type, typeName |
| Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl |
|---|
companions, get, getAnnotation, getAnnotation, getSerializedMetadata, getSerializedMetadata, lead, setCompanions, toString |
| 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 |
| Methods inherited from interface org.jvnet.hk2.component.Inhabitant |
|---|
companions, getSerializedMetadata, getSerializedMetadata, lead, setCompanions |
| Constructor Detail |
|---|
public FactoryCreator(Class<T> type,
Class<? extends Factory> factory,
Habitat habitat,
MultiMap<String,String> metadata)
public FactoryCreator(Class<T> type,
Inhabitant<? extends Factory> factory,
Habitat habitat,
MultiMap<String,String> metadata)
| Method Detail |
|---|
public T create(Inhabitant onBehalfOf)
throws ComponentException
CreatorCreator.initialize(Object, Inhabitant)
right away. This 2-phase initialization allows us to handle
cycle references correctly.
ComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||