Package org.glassfish.hk2.api
Interface InstantiationService
-
- All Known Implementing Classes:
InstantiationServiceImpl
@Contract public interface InstantiationService
This service is used to get information about the creation of a service from an implementation ofFactory
. The system creates this service, and while it can be injected into any service or even looked up, it only has data when called from inside theFactory.provide()
method of aFactory
.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getInstantiationData
InstantiationData getInstantiationData()
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- 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
-
-