|
||||||||||
| 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.AbstractWombImpl<T>
com.sun.hk2.component.ConstructorWomb<T>
public class ConstructorWomb<T>
Creates an object from its constructor.
| 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.AbstractWombImpl |
|---|
habitat, type |
| Constructor Summary | |
|---|---|
ConstructorWomb(java.lang.Class<T> type,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
|
|
| Method Summary | |
|---|---|
T |
create(Inhabitant onBehalfOf)
Creates a new instance. |
void |
initialize(T t,
Inhabitant onBehalfOf)
Performs initialization of object, such as dependency injection. |
| Methods inherited from class com.sun.hk2.component.AbstractWombImpl |
|---|
get, inject, isInstantiated, metadata, release, type, typeName |
| Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl |
|---|
companions, get, getAnnotation, getAnnotation, getSerializedMetadata, getSerializedMetadata, lead, setCompanions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jvnet.hk2.component.Womb |
|---|
get |
| Methods inherited from interface org.jvnet.hk2.component.Inhabitant |
|---|
companions, getSerializedMetadata, getSerializedMetadata, lead, setCompanions |
| Constructor Detail |
|---|
public ConstructorWomb(java.lang.Class<T> type,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
| Method Detail |
|---|
public T create(Inhabitant onBehalfOf)
throws ComponentException
WombWomb.initialize(Object, Inhabitant)
right away. This 2-phase initialization allows us to handle
cycle references correctly.
ComponentException
public void initialize(T t,
Inhabitant onBehalfOf)
throws ComponentException
Womb
initialize in interface Womb<T>initialize in class AbstractWombImpl<T>ComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||