org.apache.myfaces.extensions.cdi.core.impl.scope.conversation
Class ConversationContextAdapter
java.lang.Object
org.apache.myfaces.extensions.cdi.core.impl.scope.conversation.ConversationContextAdapter
- All Implemented Interfaces:
- javax.enterprise.context.spi.Context
public class ConversationContextAdapter
- extends Object
- implements javax.enterprise.context.spi.Context
- Author:
- Gerhard Petracek
Method Summary |
|
get(javax.enterprise.context.spi.Contextual<T> component)
|
|
get(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
Class<? extends Annotation> |
getScope()
|
boolean |
isActive()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConversationContextAdapter
public ConversationContextAdapter(Class<? extends Annotation> scope,
AbstractGroupedConversationContext conversationContext)
getScope
public Class<? extends Annotation> getScope()
-
- Specified by:
getScope
in interface javax.enterprise.context.spi.Context
get
public <T> T get(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
get
in interface javax.enterprise.context.spi.Context
- Parameters:
component
- descriptor of the beancreationalContext
- context for creating a bean
- Returns:
- a scoped bean-instance
get
public <T> T get(javax.enterprise.context.spi.Contextual<T> component)
- Specified by:
get
in interface javax.enterprise.context.spi.Context
- Parameters:
component
- descriptor of the bean
- Returns:
- an instance of the requested bean if it already exists in the current
WindowContext
null otherwise
isActive
public boolean isActive()
-
- Specified by:
isActive
in interface javax.enterprise.context.spi.Context
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.