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 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 Detail

      • getInstantiationData

        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:
        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