Package oracle.dbtools.plugin.api.di
Interface DependencyInjectionModule
-
public interface DependencyInjectionModule
A Module is a collection of related services- Author:
- cdivilly
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default void
configureApplicationScope(ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of theApplicationScoped
scopedefault void
configureRequestScope(javax.servlet.http.HttpServletRequest request, ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of theRequestScoped
scopedefault ModuleDependencies
dependencies()
Enumerate theDependencyInjectionModule
s that this module depends onstatic ModuleDependencies
requires(java.lang.Class<? extends DependencyInjectionModule>... dependencies)
default TypeReflections
types()
Enumerates the service provider types in this modulestatic TypeReflections
types(java.lang.Class<?>... types)
-
-
-
Method Detail
-
configureApplicationScope
default void configureApplicationScope(ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of theApplicationScoped
scope- Parameters:
scope
- provides methods to configure the scope
-
configureRequestScope
default void configureRequestScope(javax.servlet.http.HttpServletRequest request, ScopeConfiguration scope)
Enables the module to intercept and enhance the configuration of theRequestScoped
scope- Parameters:
request
- TheHttpServletRequest
that is being servicedscope
- provides methods to configure the scope
-
dependencies
default ModuleDependencies dependencies()
Enumerate theDependencyInjectionModule
s that this module depends on- Returns:
- ModuleDependencies instance
-
types
default TypeReflections types()
Enumerates the service provider types in this module- Returns:
TypeReflections
instance enumerating each type in this module that offers a service
-
requires
@SafeVarargs static ModuleDependencies requires(java.lang.Class<? extends DependencyInjectionModule>... dependencies)
-
types
static TypeReflections types(java.lang.Class<?>... types)
-
-