org.objectweb.easybeans.container.session.stateful.interceptors
Class RemoveOnlyWithoutExceptionInterceptor

java.lang.Object
  extended by org.objectweb.easybeans.container.session.stateful.interceptors.AbsRemoveInterceptor
      extended by org.objectweb.easybeans.container.session.stateful.interceptors.RemoveOnlyWithoutExceptionInterceptor
All Implemented Interfaces:
EasyBeansInterceptor

public class RemoveOnlyWithoutExceptionInterceptor
extends AbsRemoveInterceptor
implements EasyBeansInterceptor

This class manages the removal of the stateful session bean but only if there was no exception.

Author:
Florent Benoit

Constructor Summary
RemoveOnlyWithoutExceptionInterceptor()
           
 
Method Summary
 java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
          Remove the current bean.
 
Methods inherited from class org.objectweb.easybeans.container.session.stateful.interceptors.AbsRemoveInterceptor
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoveOnlyWithoutExceptionInterceptor

public RemoveOnlyWithoutExceptionInterceptor()
Method Detail

intercept

public java.lang.Object intercept(EasyBeansInvocationContext invocationContext)
                           throws java.lang.Exception
Remove the current bean.

Specified by:
intercept in interface EasyBeansInterceptor
Parameters:
invocationContext - context with useful attributes on the current invocation
Returns:
result of the next invocation (to chain interceptors)
Throws:
java.lang.Exception - if interceptor fails
See Also:
EJB 3.0 specification ?12.6.1