org.jboss.beans.info.plugins
Class SetterAndFieldPropertyInfo

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.SetterAndFieldPropertyInfo
All Implemented Interfaces:
Serializable, Cloneable, PropertyInfo, AnnotatedInfo, org.jboss.util.JBossInterface

public class SetterAndFieldPropertyInfo
extends FieldPropertyInfo

Combined setter 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
SetterAndFieldPropertyInfo(PropertyInfo previous, FieldInfo field)
           
 
Method Summary
 MethodInfo getSetter()
          Get the setter
 void set(Object bean, Object value)
          Set the property value
 void setSetter(MethodInfo setter)
          Set the setter
 
Methods inherited from class org.jboss.beans.info.plugins.FieldPropertyInfo
equals, get, getFieldInfo, getGetter, isReadable, isWritable, setGetter, 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

SetterAndFieldPropertyInfo

public SetterAndFieldPropertyInfo(PropertyInfo previous,
                                  FieldInfo field)
Method Detail

set

public void set(Object bean,
                Object value)
         throws Throwable
Description copied from interface: PropertyInfo
Set the property value

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

getSetter

public MethodInfo getSetter()
Description copied from interface: PropertyInfo
Get the setter

Specified by:
getSetter in interface PropertyInfo
Overrides:
getSetter in class FieldPropertyInfo
Returns:
the setter

setSetter

public void setSetter(MethodInfo setter)
Description copied from interface: PropertyInfo
Set the setter

Specified by:
setSetter in interface PropertyInfo
Overrides:
setSetter in class FieldPropertyInfo
Parameters:
setter - the setter


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