org.apache.commons.proxy.interceptor.filter
Class ReturnTypeFilter

java.lang.Object
  extended by org.apache.commons.proxy.interceptor.filter.ReturnTypeFilter
All Implemented Interfaces:
MethodFilter

public class ReturnTypeFilter
extends Object
implements MethodFilter

Filters methods based on their return type.

Since:
1.0
Author:
James Carman

Constructor Summary
ReturnTypeFilter(Class[] validReturnTypes)
           
ReturnTypeFilter(Collection validReturnTypes)
           
 
Method Summary
 boolean accepts(Method method)
          Returns whether or not this filter accepts this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReturnTypeFilter

public ReturnTypeFilter(Class[] validReturnTypes)

ReturnTypeFilter

public ReturnTypeFilter(Collection validReturnTypes)
Method Detail

accepts

public boolean accepts(Method method)
Description copied from interface: MethodFilter
Returns whether or not this filter accepts this method.

Specified by:
accepts in interface MethodFilter
Parameters:
method - the method
Returns:
whether or not this filter accepts this method


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