org.apache.tapestry.annotations
Class AnnotationUtils

java.lang.Object
  extended by org.apache.tapestry.annotations.AnnotationUtils

public class AnnotationUtils
extends java.lang.Object

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
AnnotationUtils()
           
 
Method Summary
static org.apache.hivemind.Location buildLocationForAnnotation(java.lang.reflect.Method method, java.lang.annotation.Annotation annotation, org.apache.hivemind.Resource classResource)
           
static java.lang.String getPropertyName(java.lang.reflect.Method method)
          Determines the property name for a method, by stripping off the is/get/set prefix and decapitalizing the first name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationUtils

public AnnotationUtils()
Method Detail

getPropertyName

public static java.lang.String getPropertyName(java.lang.reflect.Method method)
Determines the property name for a method, by stripping off the is/get/set prefix and decapitalizing the first name.

Parameters:
method - accessor method (get/set/is)
Returns:
the property name for the method
Throws:
org.apache.hivemind.ApplicationRuntimeException - if the method is not an accessor or mutator method

buildLocationForAnnotation

public static org.apache.hivemind.Location buildLocationForAnnotation(java.lang.reflect.Method method,
                                                                      java.lang.annotation.Annotation annotation,
                                                                      org.apache.hivemind.Resource classResource)