org.apache.commons.proxy.interceptor
Class FilteredInterceptor
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FilteredInterceptor
public FilteredInterceptor(Interceptor inner,
MethodFilter filter)
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.