public interface DependencyInjectionModule
Modifier and Type | Method and Description |
---|---|
default void |
configureApplicationScope(ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of the
ApplicationScoped scope |
default void |
configureRequestScope(javax.servlet.http.HttpServletRequest request,
ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of the
RequestScoped scope |
default ModuleDependencies |
dependencies()
Enumerate the
DependencyInjectionModule s that this module depends on |
static ModuleDependencies |
requires(Class<? extends DependencyInjectionModule>... dependencies) |
default TypeReflections |
types()
Enumerates the service provider types in this module
|
static TypeReflections |
types(Class<?>... types) |
default void configureApplicationScope(ScopeConfiguration scope)
ApplicationScoped
scopescope
- provides methods to configure the scopedefault void configureRequestScope(javax.servlet.http.HttpServletRequest request, ScopeConfiguration scope)
RequestScoped
scoperequest
- The HttpServletRequest
that is being servicedscope
- provides methods to configure the scopedefault ModuleDependencies dependencies()
DependencyInjectionModule
s that this module depends ondefault TypeReflections types()
TypeReflections
instance enumerating each type in this module that offers a service@SafeVarargs static ModuleDependencies requires(Class<? extends DependencyInjectionModule>... dependencies)
static TypeReflections types(Class<?>... types)