org.apache.myfaces.extensions.cdi.core.impl.scope.conversation
Class ConversationContextAdapter

java.lang.Object
  extended by 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

Constructor Summary
ConversationContextAdapter(Class<? extends Annotation> scope, AbstractGroupedConversationContext conversationContext)
           
 
Method Summary
<T> T
get(javax.enterprise.context.spi.Contextual<T> component)
           
<T> T
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
 

Constructor Detail

ConversationContextAdapter

public ConversationContextAdapter(Class<? extends Annotation> scope,
                                  AbstractGroupedConversationContext conversationContext)
Method Detail

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 bean
creationalContext - 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-2011 The Apache Software Foundation. All Rights Reserved.