net.sf.beanlib.provider.finder
Class ProtectedReaderMethodFinder

java.lang.Object
  extended by net.sf.beanlib.provider.finder.ProtectedReaderMethodFinder
All Implemented Interfaces:
BeanMethodFinder
Direct Known Subclasses:
PrivateReaderMethodFinder

public class ProtectedReaderMethodFinder
extends Object
implements BeanMethodFinder

Supports finding JavaBean reader method which is either public or protected.

Author:
Joe D. Velopar

Constructor Summary
ProtectedReaderMethodFinder()
           
 
Method Summary
 Method find(String propertyName, Object bean)
           
protected  boolean qualified(Method m, int mod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtectedReaderMethodFinder

public ProtectedReaderMethodFinder()
Method Detail

find

public Method find(String propertyName,
                   Object bean)
Specified by:
find in interface BeanMethodFinder
Parameters:
propertyName - property name related to the method to be found.
bean - JavaBean instance.
Returns:
the method found or null if not found.

qualified

protected boolean qualified(Method m,
                            int mod)