org.apache.myfaces.extensions.cdi.core.impl.scope.conversation
Class AbstractGroupedConversationContext
java.lang.Object
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.AbstractGroupedConversationContext
public abstract class AbstractGroupedConversationContext
- extends Object
Class which specifies the basic handling of conversations and handles the config for conversations
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
beanManager
protected javax.enterprise.inject.spi.BeanManager beanManager
useFallback
protected final boolean useFallback
AbstractGroupedConversationContext
protected AbstractGroupedConversationContext(javax.enterprise.inject.spi.BeanManager beanManager)
create
public <T> T create(javax.enterprise.inject.spi.Bean<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Parameters:
bean
- descriptor of the beancreationalContext
- context for creating a bean
- Returns:
- a scoped bean-instance
resolve
public <T> T resolve(javax.enterprise.inject.spi.Bean<T> bean)
- Resolves the instance for the given bean definition
- Type Parameters:
T
- type of the current bean- Parameters:
bean
- current bean
- Returns:
- instance of the scoped bean
resolveWindowContextManager
protected abstract WindowContextManager resolveWindowContextManager()
- Returns:
- an instance of a custom or the default
WindowContextManager
resolveBeanEntryFactory
protected abstract BeanEntryFactory resolveBeanEntryFactory()
- Returns:
- an instance of a custom or the default
BeanEntryFactory
resolveBeanInstance
protected abstract <T> T resolveBeanInstance(WindowContextManager windowContextManager,
javax.enterprise.inject.spi.Bean<T> beanDescriptor)
- Parameters:
windowContextManager
- the current
WindowContextManager
beanDescriptor
- descriptor of the requested bean
- Returns:
- the instance of the requested bean if it exists in the current
WindowContext
null otherwise
scopeBeanEntry
protected abstract <T> void scopeBeanEntry(WindowContextManager windowContextManager,
BeanEntry<T> beanEntry)
- Store the given bean in the
WindowContext
- Parameters:
windowContextManager
- current
WindowContextManager
beanEntry
- current bean-entry
getConversationConfig
protected abstract ConversationConfig getConversationConfig()
isActive
public abstract boolean isActive()
- See
Context.isActive()
- Returns:
- true if the context is active, false otherwise
checkPermission
protected abstract <T> Set<SecurityViolation> checkPermission(javax.enterprise.inject.spi.Bean<T> bean)
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.