- All Superinterfaces:
InjectExtension
- All Known Subinterfaces:
AvajeModule.Custom
A Module containing dependencies that will be included in BeanScope.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceMarker for custom scoped modules. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault Type[]Return the classes that this module provides that we allow other modules to auto depend on.default Class<?>[]Return the aspects that this module provides.default Type[]These are the classes that this module requires for wiring that are provided by other external modules (that are in the classpath at compile time).default Class<?>[]These are the aspects that this module requires whose implementations are provided by other external modules (that are in the classpath at compile time).voidBuild all the beans.Class<?>[]classes()Return public classes of the beans that would be registered by this module.default Type[]provides()Return the set of types this module explicitly provides to other modules.default Type[]requires()Return the types this module needs to be provided externally or via other modules.default Type[]Return the packages this module needs to be provided via other modules.
-
Field Details
-
EMPTY_CLASSES
Empty array of classes.
-
-
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
Return the packages this module needs to be provided via other modules. -
autoProvides
Return the classes that this module provides that we allow other modules to auto depend on.This is a convenience when using multiple modules that is otherwise controlled manually by explicitly using
provides(). -
autoProvidesAspects
Return the aspects that this module provides.This is a convenience when using multiple modules that we otherwise manually specify via
provides(). -
autoRequires
These are the classes that this module requires for wiring that are provided by other external modules (that are in the classpath at compile time).This is a convenience when using multiple modules that is otherwise controlled manually by explicitly using
requires()orrequiresPackages(). -
autoRequiresAspects
These are the aspects that this module requires whose implementations are provided by other external modules (that are in the classpath at compile time). -
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.
-