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 using
ServiceLoader.
This API may change and is for internal use only.- Author:
- Jozef Hartinger
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceContext object for thepostContextRegistrationphasestatic interfaceContext object for thepostServiceRegistrationphasestatic interfaceContext object for thepreBeanRegistrationphase -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name of the module.default voidThis hook is called once Weld registeredServices for deployment of a particular bean archive.default voidThis hook is called once Weld registered built-in contexts.default voidThis hook is called once Weld registeredServices from the deployment and added its own internal Services.default voidThis hook is called by Weld before it starts deploying beans.
-
Method Details
-
getName
String getName()The name of the module.- Returns:
-
postServiceRegistration
This hook is called once Weld registeredServices 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
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 registeredServices 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
This hook is called by Weld before it starts deploying beans. A module may register additional built-in beans. This callback is called for eachBeanDeploymentseparately.- Parameters:
ctx- context
-