Package org.apache.wicket.cdi
Class CdiConfiguration
- java.lang.Object
-
- org.apache.wicket.cdi.CdiConfiguration
-
public class CdiConfiguration extends Object
Configures CDI integration- Author:
- igor
-
-
Constructor Summary
Constructors Constructor Description CdiConfiguration()
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Application application)
Configures the specified applicationstatic CdiConfiguration
get(Application application)
javax.enterprise.inject.spi.BeanManager
getFallbackBeanManager()
IConversationPropagation
getPropagation()
CdiConfiguration
setFallbackBeanManager(javax.enterprise.inject.spi.BeanManager fallbackBeanManager)
Sets a BeanManager that should be used if all strategies to lookup a BeanManager fail.CdiConfiguration
setPropagation(IConversationPropagation propagation)
-
-
-
Constructor Detail
-
CdiConfiguration
public CdiConfiguration()
Constructor
-
-
Method Detail
-
getPropagation
public IConversationPropagation getPropagation()
-
setPropagation
public CdiConfiguration setPropagation(IConversationPropagation propagation)
-
getFallbackBeanManager
public javax.enterprise.inject.spi.BeanManager getFallbackBeanManager()
-
setFallbackBeanManager
public CdiConfiguration setFallbackBeanManager(javax.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
public void configure(Application application)
Configures the specified application- Parameters:
application
-
-
get
public static CdiConfiguration get(Application application)
-
-