Class ProvisionListener.ProvisionInvocation<T>

  • Enclosing interface:
    ProvisionListener

    public abstract static class ProvisionListener.ProvisionInvocation<T>
    extends java.lang.Object
    Encapsulates a single act of provisioning.
    Since:
    4.0
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract Binding<T> getBinding()
      Returns the Binding this is provisioning.
      abstract java.util.List<DependencyAndSource> getDependencyChain()
      Returns the dependency chain that led to this object being provisioned.
      abstract T provision()
      Performs the provision, returning the object provisioned.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProvisionInvocation

        public ProvisionInvocation()
    • Method Detail

      • getBinding

        public abstract Binding<T> getBinding()
        Returns the Binding this is provisioning.

        You must not call Provider.get() on the provider returned by Binding.getProvider(), otherwise you will get confusing error messages.

      • provision

        public abstract T provision()
        Performs the provision, returning the object provisioned.
      • getDependencyChain

        public abstract java.util.List<DependencyAndSource> getDependencyChain()
        Returns the dependency chain that led to this object being provisioned.