com.sun.hk2.component
Class InjectableParametizedConstructorCreator<T>
java.lang.Object
com.sun.hk2.component.AbstractInhabitantImpl<T>
com.sun.hk2.component.AbstractCreatorImpl<T>
com.sun.hk2.component.ConstructorCreator<T>
com.sun.hk2.component.InjectableParametizedConstructorCreator<T>
- All Implemented Interfaces:
- Holder<T>, Binding<T>, Factory<T>, ManagedComponentProvider<T>, Provider<T>, Creator<T>, Inhabitant<T>
public class InjectableParametizedConstructorCreator<T>
- extends ConstructorCreator<T>
Component for which constructors takes @Inject annotated parameters
- Author:
- Jerome Dochez
| Nested classes/interfaces inherited from interface com.sun.hk2.component.Holder |
Holder.Impl<T> |
| Methods inherited from class com.sun.hk2.component.AbstractInhabitantImpl |
companions, dispose, get, getAnnotation, getAnnotation, getAnnotations, getDescriptor, getDescriptorFor, getProvider, getProvider, getSerializedMetadata, getSerializedMetadata, lead, matches, setCompanions, toString |
| Methods inherited from interface org.jvnet.hk2.component.Creator |
get |
InjectableParametizedConstructorCreator
public InjectableParametizedConstructorCreator(Class<T> type,
Constructor<T> ctor,
Habitat habitat,
MultiMap<String,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.
- Specified by:
create in interface Creator<T>- Overrides:
create in class ConstructorCreator<T>
- Throws:
ComponentException
Copyright © 2011 Oracle Corporation. All Rights Reserved.