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 InstantiationData
getInstantiationData()
This method may be called from inside the implementation ofFactory.provide()
method to get more information about the reason for instantiation.void
popInjecteeParent()
void
pushInjecteeParent(Injectee injectee)
java.lang.String
toString()
-
-
-
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:InstantiationService
This 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:
getInstantiationData
in 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:
toString
in classjava.lang.Object
-
-