org.apache.commons.proxy.interceptor
Class FilteredInterceptor

java.lang.Object
  extended by org.apache.commons.proxy.interceptor.FilteredInterceptor
All Implemented Interfaces:
Interceptor

public class FilteredInterceptor
extends Object
implements Interceptor

Decorates another MethodInterceptor by only calling it if the method is accepted by the supplied MethodFilter.

Since:
1.0
Author:
James Carman

Constructor Summary
FilteredInterceptor(Interceptor inner, MethodFilter filter)
           
 
Method Summary
 Object intercept(Invocation invocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredInterceptor

public FilteredInterceptor(Interceptor inner,
                           MethodFilter filter)
Method Detail

intercept

public Object intercept(Invocation invocation)
                 throws Throwable
Specified by:
intercept in interface Interceptor
Throws:
Throwable


Copyright © 2005-2011 Apache Software Foundation. All Rights Reserved.