|
||||||||||
| 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.ConstructorCreator<T>
com.sun.hk2.component.InjectableParametizedConstructorCreator<T>
public class InjectableParametizedConstructorCreator<T>
Component for which constructors takes @Inject annotated parameters
| 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 | |
|---|---|
InjectableParametizedConstructorCreator(java.lang.Class<T> type,
java.lang.reflect.Constructor<T> ctor,
Habitat habitat,
MultiMap<java.lang.String,java.lang.String> metadata)
|
|
| Method Summary | |
|---|---|
T |
create(Inhabitant onBehalfOf)
Creates a new instance. |
| Methods inherited from class com.sun.hk2.component.ConstructorCreator |
|---|
initialize |
| Methods inherited from class com.sun.hk2.component.AbstractCreatorImpl |
|---|
createInjectionManager, get, getExecutorService, getInjectionResolvers, inject, isActive, metadata, release, type, typeName |
| Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl |
|---|
companions, dispose, get, getAnnotation, getAnnotation, getAnnotations, getDescriptor, 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 |
| Methods inherited from interface org.glassfish.hk2.Provider |
|---|
getAnnotations, getDescriptor |
| Constructor Detail |
|---|
public InjectableParametizedConstructorCreator(java.lang.Class<T> type,
java.lang.reflect.Constructor<T> ctor,
Habitat habitat,
MultiMap<java.lang.String,java.lang.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.
create in interface Creator<T>create in class ConstructorCreator<T>ComponentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||