org.apache.myfaces.extensions.cdi.core.api.scope.conversation
Annotation Type CloseConversationGroup


@Retention(value=RUNTIME)
@Target(value={TYPE,METHOD})
@Inherited
@Documented
@InterceptorBinding
public @interface CloseConversationGroup

Interceptor which allows to close a conversation-group after the invocation of the intercepted method. If a custom RuntimeException is specified, the conversation is just closed if the exception occurred.

Author:
Gerhard Petracek

Optional Element Summary
 Class<?> group
          Specifies the conversation-group (specified implicitly or via ConversationGroup) which should be terminated.
 Class<? extends RuntimeException> on
          Specifies which exception (type) will trigger the termination of the current conversation.
 

on

public abstract Class<? extends RuntimeException> on
Specifies which exception (type) will trigger the termination of the current conversation.

Returns:
exception which should trigger the termination of the current conversation.
Default:
java.lang.RuntimeException.class

group

public abstract Class<?> group
Specifies the conversation-group (specified implicitly or via ConversationGroup) which should be terminated.

Returns:
group of the conversation which should be terminated
Default:
org.apache.myfaces.extensions.cdi.core.api.scope.conversation.CloseConversationGroup.class


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.