org.apache.tapestry.enhance
Interface ClassInspector

All Known Implementing Classes:
ClassInspectorImpl, GenericsClassInspectorImpl

public interface ClassInspector

Service that provides a common interface to other lower level reflection services to provide a common set of functionality for reflection when using a 1.4 or >= 1.5 jre.


Method Summary
 MethodSignature getMethodSignature(Class implementing, Method m)
          Gets a compatible method signature for the specific generic Method object.
 MethodSignature getPropertyAccessor(Class type, String propertyName)
          Gets the first available method for the specified property.
 

Method Detail

getMethodSignature

MethodSignature getMethodSignature(Class implementing,
                                   Method m)
Gets a compatible method signature for the specific generic Method object.

Parameters:
implementing - The class implmeneting the specific method.
m - The method object to generate a signature for.
Returns:
A signature for the method.

getPropertyAccessor

MethodSignature getPropertyAccessor(Class type,
                                    String propertyName)
Gets the first available method for the specified property. It may be a write or read method, but read will be preferred to write.

Parameters:
type - The base class to introspect for the property accessor.
propertyName - The name of the javabeans style property to look for. (ie "value" would be "getValue" )
Returns:
A compatible method signature, or null if none could be found.


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.