Interface Module

  • All Known Subinterfaces:
    Module.Custom

    public interface Module
    A Module that can be included in BeanScope.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Module.Custom
      Marker for custom scoped modules.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void build​(Builder builder)
      Build all the beans.
      Class<?>[] classes()
      Return public classes of the beans that would be registered by this module.
      Class<?>[] provides()
      Return the set of types this module explicitly provides to other modules.
      Class<?>[] requires()
      Return the types this module needs to be provided externally or via other modules.
    • Method Detail

      • requires

        Class<?>[] requires()
        Return the types this module needs to be provided externally or via other modules.
      • provides

        Class<?>[] provides()
        Return the set of types this module explicitly provides to other modules.
      • classes

        Class<?>[] classes()
        Return public classes of the beans that would be registered by this module.

        This method allows code to use reflection to inspect the modules classes before the module is wired. This method is not required for DI wiring.

      • build

        void build​(Builder builder)
        Build all the beans.