org.jboss.seam.core
Class ConversationInterceptor

java.lang.Object
  extended by org.jboss.seam.intercept.AbstractInterceptor
      extended by org.jboss.seam.core.ConversationInterceptor
All Implemented Interfaces:
Serializable, OptimizedInterceptor

@Interceptor(stateless=true,
             around=BijectionInterceptor.class,
             within=BusinessProcessInterceptor.class)
public class ConversationInterceptor
extends AbstractInterceptor

Implements annotation-based conversation demarcation.

Author:
Gavin King
See Also:
Serialized Form

Constructor Summary
ConversationInterceptor()
           
 
Method Summary
 Object aroundInvoke(InvocationContext invocation)
           
 boolean isInterceptorEnabled()
          Returns true if this interceptor should be enabled.
 boolean redirectToExistingConversation(Method method)
           
 
Methods inherited from class org.jboss.seam.intercept.AbstractInterceptor
getComponent, setComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversationInterceptor

public ConversationInterceptor()
Method Detail

aroundInvoke

@AroundInvoke
public Object aroundInvoke(InvocationContext invocation)
                    throws Exception
Throws:
Exception

redirectToExistingConversation

public boolean redirectToExistingConversation(Method method)

isInterceptorEnabled

public boolean isInterceptorEnabled()
Description copied from interface: OptimizedInterceptor
Returns true if this interceptor should be enabled. The component and the annotation will be injected into the interceptor instance before this method is called, and can be used to decide whether the interceptor should be enabled