com.primix.tapestry.util.prop
Class PublicBeanPropertyHelper

java.lang.Object
  |
  +--com.primix.tapestry.util.prop.PropertyHelper
        |
        +--com.primix.tapestry.util.prop.PublicBeanPropertyHelper

public class PublicBeanPropertyHelper
extends PropertyHelper

Allows public instance variables of IPublicBean instances to be treated as read/write JavaBeans properties.

Since:
1.0.1
Version:
$Id: PublicBeanPropertyHelper.java,v 1.1 2001/05/24 20:08:22 hship Exp $
Author:
Howard Ship

Fields inherited from class com.primix.tapestry.util.prop.PropertyHelper
accessors, beanClass, PATH_SEPERATOR
 
Constructor Summary
PublicBeanPropertyHelper(java.lang.Class beanClass)
           
 
Method Summary
protected  void buildPropertyAccessors()
          Invoked to build a list of property accessor.
 
Methods inherited from class com.primix.tapestry.util.prop.PropertyHelper
forClass, forInstance, get, getAccessor, getAccessorPath, getAccessors, getPath, getPath, getSyntheticPropertyNames, isReadable, isWritable, register, set, setPath, setPath, splitPropertyPath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PublicBeanPropertyHelper

public PublicBeanPropertyHelper(java.lang.Class beanClass)
Method Detail

buildPropertyAccessors

protected void buildPropertyAccessors()
Invoked to build a list of property accessor. The super-implementation takes care of all the JavaBeans properties; we add additional properties mapped to public instance variables.

Only accessible fields are included (that is, public fields that aren't static). Also, if a JavaBeans property exists, it takes priority over the field access (for the attribute with the same name).

Overrides:
buildPropertyAccessors in class PropertyHelper