public class CdiConfiguration extends Object
Constructor and Description |
---|
CdiConfiguration(javax.enterprise.inject.spi.BeanManager beanManager)
Constructor
|
public CdiConfiguration(javax.enterprise.inject.spi.BeanManager beanManager)
beanManager
- public javax.enterprise.inject.spi.BeanManager getBeanManager()
null
if nonepublic IConversationPropagation getPropagation()
public boolean isAutoConversationManagement()
setAutoConversationManagement(boolean)
for details.public CdiConfiguration setAutoConversationManagement(boolean enabled)
ConversationalComponent
interface. If such
components are found in the page a conversation is marked persistent, and if they are not the
conversation is marked transient. This greatly simplifies the management of conversation
lifecycle.
Sometimes it is necessary to manually control the application. For these cases, once a
conversation is started AutoConversation
bean can be used to mark the conversation as
manually-managed.enabled
- this
for easy chainingpublic CdiConfiguration setPropagation(IConversationPropagation propagation)
public INonContextualManager getNonContextualManager()
public CdiConfiguration setNonContextualManager(INonContextualManager nonContextualManager)
public boolean isInjectComponents()
public CdiConfiguration setInjectComponents(boolean injectComponents)
public boolean isInjectApplication()
public CdiConfiguration setInjectApplication(boolean injectApplication)
public boolean isInjectSession()
public CdiConfiguration setInjectSession(boolean injectSession)
public boolean isInjectBehaviors()
public CdiConfiguration setInjectBehaviors(boolean injectBehaviors)
public CdiContainer configure(Application application)
application
- Copyright © 2006–2022 Apache Software Foundation. All rights reserved.