Class ClazzCreator<T>
java.lang.Object
org.jvnet.hk2.internal.ClazzCreator<T>
- Type Parameters:
T- The type of object this creator creates
- All Implemented Interfaces:
Creator<T>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate List<SystemInjecteeImpl> private final Class<?> private final ServiceLocatorImplprivate ClazzCreator.ResolutionInfoprivate final Set<ClazzCreator.ResolutionInfo> private final Set<ClazzCreator.ResolutionInfo> private Methodprivate Methodprivate ActiveDescriptor<?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(ServiceHandle<?> root, SystemDescriptor<?> eventThrower) Creates an instance of the given typeprivate ObjectcreateMe(Map<SystemInjecteeImpl, Object> resolved) voidDisposes the given instanceprivate voidfieldMe(Map<SystemInjecteeImpl, Object> resolved, T t) (package private) Class<?> Returns all the injectees needed prior to creating this object(package private) ServiceLocatorImpl(package private) ActiveDescriptor<?> (package private) voidinitialize(ActiveDescriptor<?> selfDescriptor, String analyzerName, Collector collector) (package private) voidinitialize(ActiveDescriptor<?> selfDescriptor, Collector collector) private voidmethodMe(Map<SystemInjecteeImpl, Object> resolved, T t) private voidpostConstructMe(T t) private voidpreDestroyMe(T t) (package private) voidresetSelfDescriptor(ActiveDescriptor<?> selfDescriptor) This is done because sometimes when creating the creator we do not know what the true system descriptor will beprivate voidresolve(Map<SystemInjecteeImpl, Object> addToMe, InjectionResolver<?> resolver, SystemInjecteeImpl injectee, ServiceHandle<?> root, Collector errorCollection) private Map<SystemInjecteeImpl, Object> resolveAllDependencies(ServiceHandle<?> root) toString()
-
Field Details
-
locator
-
implClass
-
myInitializers
-
myFields
-
selfDescriptor
-
myConstructor
-
allInjectees
-
postConstructMethod
-
preDestroyMethod
-
-
Constructor Details
-
ClazzCreator
ClazzCreator(ServiceLocatorImpl locator, Class<?> implClass)
-
-
Method Details
-
initialize
-
initialize
-
resetSelfDescriptor
This is done because sometimes when creating the creator we do not know what the true system descriptor will be- Parameters:
selfDescriptor- The descriptor that should replace our self descriptor
-
resolve
private void resolve(Map<SystemInjecteeImpl, Object> addToMe, InjectionResolver<?> resolver, SystemInjecteeImpl injectee, ServiceHandle<?> root, Collector errorCollection) -
resolveAllDependencies
private Map<SystemInjecteeImpl, Object> resolveAllDependencies(ServiceHandle<?> root) throws MultiException, IllegalStateException - Throws:
MultiExceptionIllegalStateException
-
createMe
-
fieldMe
-
methodMe
-
postConstructMe
-
preDestroyMe
-
create
Description copied from interface:CreatorCreates an instance of the given type -
dispose
-
getInjectees
-
getServiceLocator
ServiceLocatorImpl getServiceLocator() -
getImplClass
Class<?> getImplClass() -
getUnderlyingDescriptor
ActiveDescriptor<?> getUnderlyingDescriptor() -
toString
-