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 
    Marker for custom scoped modules.
  • Method Summary

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

    • provides

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

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

      Return the packages this module needs to be provided via 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.