Package org.glassfish.hk2.api
Interface InstantiationService
- All Known Implementing Classes:
InstantiationServiceImpl
This service is used to get information about
the creation of a service from an
implementation of
Factory
. 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 the Factory.provide()
method of a Factory
.-
Method Summary
Modifier and TypeMethodDescriptionThis method may be called from inside the implementation ofFactory.provide()
method to get more information about the reason for instantiation.
-
Method Details
-
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
-