org.ow2.jonas.jndi.interceptors.impl.easybeans
Class ResourceCheckerInterceptor

java.lang.Object
  extended by org.ow2.jonas.jndi.interceptors.impl.easybeans.ResourceCheckerInterceptor
All Implemented Interfaces:
org.ow2.easybeans.api.EasyBeansInterceptor

public class ResourceCheckerInterceptor
extends Object
implements org.ow2.easybeans.api.EasyBeansInterceptor

Interceptors that will check if all resources have been closed.

Author:
Florent Benoit

Constructor Summary
ResourceCheckerInterceptor()
          Default constructor.
 
Method Summary
 Object intercept(org.ow2.easybeans.api.EasyBeansInvocationContext invocationContext)
          Defines the interceptor schema of EasyBeans interceptors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceCheckerInterceptor

public ResourceCheckerInterceptor()
Default constructor.

Method Detail

intercept

public Object intercept(org.ow2.easybeans.api.EasyBeansInvocationContext invocationContext)
                 throws Exception
Defines the interceptor schema of EasyBeans interceptors.

Specified by:
intercept in interface org.ow2.easybeans.api.EasyBeansInterceptor
Parameters:
invocationContext - context with useful attributes on the current invocation
Returns:
result of the next invocation (to chain interceptors)
Throws:
Exception - if interceptor fails


Copyright © 2010 OW2 Consortium. All Rights Reserved.