java.lang.Object
org.apache.wicket.cdi.CdiConfiguration
Configures CDI integration
- Author:
- igor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Application application) Configures the specified applicationstatic CdiConfiguration
get
(Application application) jakarta.enterprise.inject.spi.BeanManager
setFallbackBeanManager
(jakarta.enterprise.inject.spi.BeanManager fallbackBeanManager) Sets a BeanManager that should be used if all strategies to lookup a BeanManager fail.setPropagation
(IConversationPropagation propagation)
-
Constructor Details
-
CdiConfiguration
public CdiConfiguration()Constructor
-
-
Method Details
-
getPropagation
-
setPropagation
-
getFallbackBeanManager
-
setFallbackBeanManager
public CdiConfiguration setFallbackBeanManager(jakarta.enterprise.inject.spi.BeanManager fallbackBeanManager) Sets a BeanManager that should be used if all strategies to lookup a BeanManager fail. This can be used in scenarios where you do not have JNDI available and do not want to bootstrap the CDI provider. It should be noted that the fallback BeanManager can only be used within the context of a Wicket application (ie. Application.get() should return the application that was configured with this CdiConfiguration).- Parameters:
fallbackBeanManager
-- Returns:
- this instance
-
configure
Configures the specified application- Parameters:
application
-
-
get
-