Package org.jvnet.hk2.internal
Class InstantiationServiceImpl
- java.lang.Object
-
- org.jvnet.hk2.internal.InstantiationServiceImpl
-
- All Implemented Interfaces:
InstantiationService
@Visibility(LOCAL) public class InstantiationServiceImpl extends java.lang.Object implements InstantiationService
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.HashMap<java.lang.Long,java.util.LinkedList<Injectee>>injecteeStack
-
Constructor Summary
Constructors Constructor Description InstantiationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantiationDatagetInstantiationData()This method may be called from inside the implementation ofFactory.provide()method to get more information about the reason for instantiation.voidpopInjecteeParent()voidpushInjecteeParent(Injectee injectee)java.lang.StringtoString()
-
-
-
Field Detail
-
injecteeStack
private final java.util.HashMap<java.lang.Long,java.util.LinkedList<Injectee>> injecteeStack
-
-
Method Detail
-
getInstantiationData
public InstantiationData getInstantiationData()
Description copied from interface:InstantiationServiceThis method may be called from inside the implementation ofFactory.provide()method to get more information about the reason for instantiation. If this method is called outside the scope of aFactory.provide()method the results are indeterminate- Specified by:
getInstantiationDatain interfaceInstantiationService- Returns:
- A non-null InstantiationData object
containing information about the caller of
the
Factory.provide()method. May return null if no information is known or if called from outside of aFactory.provide()method
-
pushInjecteeParent
public void pushInjecteeParent(Injectee injectee)
-
popInjecteeParent
public void popInjecteeParent()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-