org.jboss.seam.util
Class AnnotatedBeanProperty<T extends java.lang.annotation.Annotation>

java.lang.Object
  extended by org.jboss.seam.util.AnnotatedBeanProperty<T>

public class AnnotatedBeanProperty<T extends java.lang.annotation.Annotation>
extends java.lang.Object

A convenience class for working with an annotated property (either a field or method) of a JavaBean class.

Author:
Shane Bryzak

Constructor Summary
AnnotatedBeanProperty(java.lang.Class<?> cls, java.lang.Class<T> annotationClass)
           
 
Method Summary
 T getAnnotation()
           
 java.lang.String getName()
           
 java.lang.reflect.Type getPropertyType()
           
 java.lang.Object getValue(java.lang.Object bean)
           
 boolean isSet()
           
 void setValue(java.lang.Object bean, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedBeanProperty

public AnnotatedBeanProperty(java.lang.Class<?> cls,
                             java.lang.Class<T> annotationClass)
Method Detail

setValue

public void setValue(java.lang.Object bean,
                     java.lang.Object value)

getValue

public java.lang.Object getValue(java.lang.Object bean)

getName

public java.lang.String getName()

getAnnotation

public T getAnnotation()

getPropertyType

public java.lang.reflect.Type getPropertyType()

isSet

public boolean isSet()


Copyright © 2011 Seam Framework. All Rights Reserved.