Class InjectionProvider.InjectionType<T>

  • Type Parameters:
    T - type of the injectable
    Enclosing interface:
    InjectionProvider

    public static class InjectionProvider.InjectionType<T>
    extends Object
    A single injection type. The provider creates one for each injectable it provides.
    • Method Detail

      • injectedType

        public Class<T> injectedType()
        Class of the injectable.
        Returns:
        class
      • createInstance

        public T createInstance​(Vault vault,
                                Config vaultConfig,
                                InjectionProvider.InstanceConfig instanceConfig)
        Create a new instance of the injectable.
        Parameters:
        vault - vault to use
        vaultConfig - vault configuration node
        instanceConfig - configuration of the instance
        Returns:
        a new injectable instance