Top Description Methods
org.glassfish.hk2.api

public Interface InstantiationService

Annotations
@Contract
Imports
org.jvnet.hk2.annotations.Contract

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.
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public InstantiationData

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 a Factory#provide() method
getInstantiationData
()

This method may be called from inside the implementation of Factory#provide() method to get more information about the reason for instantiation.

Method Detail

getInstantiationDataback to summary
public InstantiationData getInstantiationData()

This method may be called from inside the implementation of Factory#provide() method to get more information about the reason for instantiation. If this method is called outside the scope of a Factory#provide() method the results are indeterminate

Returns:InstantiationData

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 a Factory#provide() method