Package org.jboss.weld.module
Interface WeldModule
-
public interface WeldModule
A Weld module is a unit of code that extends capabilities of Weld. This is done mainly by registering services, beans, contexts and validators. Unlike CDI portable extensions, this SPI is consumed by a limited set of Weld's internal modules that provide integration with Java EE technologies. WeldModules are discovered usingServiceLoader
. This API may change and is for internal use only.- Author:
- Jozef Hartinger
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
WeldModule.PostBeanArchiveServiceRegistrationContext
static interface
WeldModule.PostContextRegistrationContext
Context object for thepostContextRegistration
phasestatic interface
WeldModule.PostServiceRegistrationContext
Context object for thepostServiceRegistration
phasestatic interface
WeldModule.PreBeanRegistrationContext
Context object for thepreBeanRegistration
phase
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description String
getName()
The name of the module.default void
postBeanArchiveServiceRegistration(WeldModule.PostBeanArchiveServiceRegistrationContext ctx)
This hook is called once Weld registeredService
s for deployment of a particular bean archive.default void
postContextRegistration(WeldModule.PostContextRegistrationContext ctx)
This hook is called once Weld registered built-in contexts.default void
postServiceRegistration(WeldModule.PostServiceRegistrationContext ctx)
This hook is called once Weld registeredService
s from the deployment and added its own internal Services.default void
preBeanRegistration(WeldModule.PreBeanRegistrationContext ctx)
This hook is called by Weld before it starts deploying beans.
-
-
-
Method Detail
-
getName
String getName()
The name of the module.- Returns:
-
postServiceRegistration
default void postServiceRegistration(WeldModule.PostServiceRegistrationContext ctx)
This hook is called once Weld registeredService
s from the deployment and added its own internal Services. A module may use this hook to discover registered per-deployment services and to register additional services.- Parameters:
ctx
- context
-
postContextRegistration
default void postContextRegistration(WeldModule.PostContextRegistrationContext ctx)
This hook is called once Weld registered built-in contexts. A module may register additional contexts.- Parameters:
ctx
- context
-
postBeanArchiveServiceRegistration
default void postBeanArchiveServiceRegistration(WeldModule.PostBeanArchiveServiceRegistrationContext ctx)
This hook is called once Weld registeredService
s for deployment of a particular bean archive. A module may use this hook to discover services for a particular archive and to register additional services. This method is called for each bean archive that is processed.- Parameters:
ctx
- context
-
preBeanRegistration
default void preBeanRegistration(WeldModule.PreBeanRegistrationContext ctx)
This hook is called by Weld before it starts deploying beans. A module may register additional built-in beans. This callback is called for eachBeanDeployment
separately.- Parameters:
ctx
- context
-
-