org.jboss.beans.info.plugins
Class GetterAndFieldPropertyInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.reflect.plugins.AbstractAnnotatedInfo
          extended by org.jboss.reflect.plugins.AnnotationHolder
              extended by org.jboss.beans.info.plugins.AbstractPropertyInfo
                  extended by org.jboss.beans.info.plugins.FieldPropertyInfo
                      extended by org.jboss.beans.info.plugins.GetterAndFieldPropertyInfo
All Implemented Interfaces:
Serializable, Cloneable, PropertyInfo, AnnotatedInfo, org.jboss.util.JBossInterface

public class GetterAndFieldPropertyInfo
extends FieldPropertyInfo

Combined getter and field property info.

Author:
Ales Justin
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.reflect.plugins.AnnotationHolder
annotationMap, annotationsArray
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
GetterAndFieldPropertyInfo(PropertyInfo previous, FieldInfo field)
           
 
Method Summary
 Object get(Object bean)
          Get the property value
 MethodInfo getGetter()
          Get the getter
 void setGetter(MethodInfo getter)
          Set the getter
 
Methods inherited from class org.jboss.beans.info.plugins.FieldPropertyInfo
equals, getFieldInfo, getSetter, isReadable, isWritable, set, setSetter, toString
 
Methods inherited from class org.jboss.beans.info.plugins.AbstractPropertyInfo
getBeanInfo, getHashCode, getName, getType, getUpperName, init, setType, toShortString
 
Methods inherited from class org.jboss.reflect.plugins.AnnotationHolder
getAnnotation, getAnnotations, isAnnotationPresent, setupAnnotations
 
Methods inherited from class org.jboss.reflect.plugins.AbstractAnnotatedInfo
getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.reflect.spi.AnnotatedInfo
getAnnotation, getAnnotations, getUnderlyingAnnotation, getUnderlyingAnnotations, isAnnotationPresent, isAnnotationPresent
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 

Constructor Detail

GetterAndFieldPropertyInfo

public GetterAndFieldPropertyInfo(PropertyInfo previous,
                                  FieldInfo field)
Method Detail

get

public Object get(Object bean)
           throws Throwable
Description copied from interface: PropertyInfo
Get the property value

Specified by:
get in interface PropertyInfo
Overrides:
get in class FieldPropertyInfo
Parameters:
bean - the bean
Returns:
the property value
Throws:
Throwable - for any error

getGetter

public MethodInfo getGetter()
Description copied from interface: PropertyInfo
Get the getter

Specified by:
getGetter in interface PropertyInfo
Overrides:
getGetter in class FieldPropertyInfo
Returns:
the getter

setGetter

public void setGetter(MethodInfo getter)
Description copied from interface: PropertyInfo
Set the getter

Specified by:
setGetter in interface PropertyInfo
Overrides:
setGetter in class FieldPropertyInfo
Parameters:
getter - the getter


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.