org.jboss.seam.conversation.spi
Class SeamConversationContextFactory

java.lang.Object
  extended by org.jboss.seam.conversation.spi.SeamConversationContextFactory

public class SeamConversationContextFactory
extends Object

Create SeamConversationContext based on underlying CDI implementation.

Author:
Ales Justin

Constructor Summary
SeamConversationContextFactory()
           
 
Method Summary
static
<T> SeamConversationContext<T>
getContext(Class<T> storeType)
          Get the current Seam conversation context instance.
static SeamConversationContext produce(InjectionPoint ip)
          Produce matching Seam conversation context.
static void setDisableNoopInstance(boolean disableNoopInstance)
          Do we allow noop Seam conversation context instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SeamConversationContextFactory

public SeamConversationContextFactory()
Method Detail

produce

@Produces
public static SeamConversationContext produce(InjectionPoint ip)
Produce matching Seam conversation context.

Parameters:
ip - current injection point
Returns:
new Seam conversation context instance

getContext

public static <T> SeamConversationContext<T> getContext(Class<T> storeType)
Get the current Seam conversation context instance. If null is passed as store type, we try to use CDI impl's default HTTP based SeamConversationContext.

Parameters:
storeType - the store type
Returns:
get current conversation context instance

setDisableNoopInstance

public static void setDisableNoopInstance(boolean disableNoopInstance)
Do we allow noop Seam conversation context instance. If disabled, an exception will be thrown for no match.

Parameters:
disableNoopInstance - the noop flag


Copyright © 2011 Seam Framework. All Rights Reserved.