org.jboss.portal.faces.el.dynamic
Interface DynamicBean

All Known Implementing Classes:
AbstractDynamicBean, ClassConstantPublisherBean, PageManagerBean.DynamicMap, PreferenceBean, SimpleDynamicBean

public interface DynamicBean

Defines an interface that an object can implement when that object wants to manage itself the resolution of its properties.

Version:
$Revision: 8784 $
Author:
Julien Viet

Method Summary
 java.lang.Class getType(java.lang.Object propertyName)
          Return the type of the specified property.
 PropertyValue getValue(java.lang.Object propertyName)
          Return the value of the specified property.
 boolean setValue(java.lang.Object propertyName, java.lang.Object value)
          Set the value of the specified property.
 

Method Detail

getType

java.lang.Class getType(java.lang.Object propertyName)
                        throws java.lang.IllegalArgumentException
Return the type of the specified property.

Parameters:
propertyName - the property name
Returns:
the type of the specified property or null
Throws:
java.lang.IllegalArgumentException - if the property name is null

getValue

PropertyValue getValue(java.lang.Object propertyName)
                       throws java.lang.IllegalArgumentException
Return the value of the specified property.

Parameters:
propertyName - the property name
Returns:
the property value
Throws:
java.lang.IllegalArgumentException - if the property is null

setValue

boolean setValue(java.lang.Object propertyName,
                 java.lang.Object value)
                 throws java.lang.IllegalArgumentException
Set the value of the specified property.

Parameters:
propertyName - the property name
value - the new property value
Returns:
true if the property was succesfully set
Throws:
java.lang.IllegalArgumentException - if the property name is null