- All Known Subinterfaces:
Module.Custom
public interface Module
A Module that can be included in BeanScope.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMarker for custom scoped modules. -
Method Summary
Modifier and TypeMethodDescriptionvoidBuild 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.Class<?>[]Return the packages this module needs to be provided via other modules.
-
Method Details
-
provides
Return the set of types this module explicitly provides to other modules. -
requires
Return the types this module needs to be provided externally or via other modules. -
requiresPackages
Class<?>[] requiresPackages()Return the packages this module needs to be provided via other modules. -
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
Build all the beans.
-