Interface BootLayerConfigurator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BootLayerConfigurator
All classes that are implementing this interface and are registered as a service provider to the class path will be loaded via the service provider interface when the boot injection layer is constructed for the first time. This should be used when a reusable binding is made.

The configureBootLayer(InjectionLayer) method is only called once per jvm lifetime. If a new service provider gets registered after the call, the provider will be ignored.

Since:
4.0
  • Method Details

    • configureBootLayer

      void configureBootLayer(@NonNull @NonNull InjectionLayer<?> bootLayer)
      Configures the boot injection layer. Note that the given injection layer cannot be closed.
      Parameters:
      bootLayer - the boot injection layer to configure.
      Throws:
      NullPointerException - if the given boot layer is null.