Package org.eclnt.jsfserver.util
Class LastPropertyResolverByDelegation
java.lang.Object
org.eclnt.jsfserver.base.faces.el.PropertyResolver
org.eclnt.jsfserver.util.LastPropertyResolverByDelegation
This is the property resolver that is referenced via faces-config.xml.
It provides the following addon-features:
(1) Fast(er) access than introspection for getting a property. Interface @link
(2) Possibility to convert values just before they are set: interface
(3) Possibility to notify bean that is set about the change of data: interface IPropertyResolverAware
Note: while the listeners on property resolution level always operate on the level of one object and one property there is a more general listener, that has the whole value binding that is currently set in mind:
NOTE: Since changing to JSF 1.2 the property resolver is no longer needed. All the functions were moved into the CCELResolver. Background: there was a major change in JSF 1.2 on expression resolution, which was NOT compatible with the JSF 1.1 processing.
(1) Fast(er) access than introspection for getting a property. Interface @link
IAcceleratedPropertyAccess.
(2) Possibility to convert values just before they are set: interface
IPropertyValueConverter.
(3) Possibility to notify bean that is set about the change of data: interface IPropertyResolverAware
Note: while the listeners on property resolution level always operate on the level of one object and one property there is a more general listener, that has the whole value binding that is currently set in mind:
IValueBindingListener.
NOTE: Since changing to JSF 1.2 the property resolver is no longer needed. All the functions were moved into the CCELResolver. Background: there was a major change in JSF 1.2 on expression resolution, which was NOT compatible with the JSF 1.1 processing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisReadOnly(Object arg0, int arg1) booleanisReadOnly(Object arg0, Object arg1) voidvoid
-
Constructor Details
-
LastPropertyResolverByDelegation
-
-
Method Details
-
getType
public Class getType(Object arg0, Object arg1) throws EvaluationException, PropertyNotFoundException - Overrides:
getTypein classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
getType
-
getValue
public Object getValue(Object object, Object property) throws EvaluationException, PropertyNotFoundException - Overrides:
getValuein classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
getValue
- Overrides:
getValuein classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
isReadOnly
public boolean isReadOnly(Object arg0, int arg1) throws EvaluationException, PropertyNotFoundException - Overrides:
isReadOnlyin classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
isReadOnly
public boolean isReadOnly(Object arg0, Object arg1) throws EvaluationException, PropertyNotFoundException - Overrides:
isReadOnlyin classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
setValue
public void setValue(Object object, int arrayIndex, Object value) throws EvaluationException, PropertyNotFoundException - Overrides:
setValuein classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-
setValue
public void setValue(Object object, Object property, Object value) throws EvaluationException, PropertyNotFoundException - Overrides:
setValuein classPropertyResolver- Throws:
EvaluationExceptionPropertyNotFoundException
-