net.sf.beanlib.provider.finder
Class ProtectedReaderMethodFinder

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

public class ProtectedReaderMethodFinder
extends Object
implements BeanMethodFinder

Supports finding JavaBean reader method, either public or protected.

Author:
Joe D. Velopar

Field Summary
static ProtectedReaderMethodFinder inst
           
 
Constructor Summary
private ProtectedReaderMethodFinder()
           
 
Method Summary
 Method find(String propertyName, Object bean)
           
private  boolean found(Method m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inst

public static final ProtectedReaderMethodFinder inst
Constructor Detail

ProtectedReaderMethodFinder

private 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.

found

private boolean found(Method m)