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

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

public class RemoveAlwaysInterceptor
extends AbsRemoveInterceptor
implements EasyBeansInterceptor

This class manages the removal of the stateful session bean. The bean is removed in all case (even with exception).

Author:
Florent Benoit

Constructor Summary
RemoveAlwaysInterceptor()
           
 
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

RemoveAlwaysInterceptor

public RemoveAlwaysInterceptor()
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