public abstract class PropertyValueProvider extends Object
A PropertyValueProvider can be registered by placing
/META-INF/services/org.apache.myfaces.trinidad.config.PropertyValueProvider
on the classpath containing the fully qualified name of the implementation class.
Note: at this time the framework only supports one PropertyValueProvider being registered to avoid provider ordering issues.
Implementation os this class are required to be thread safe allowing multiple threads to invoke methods on an instance concurrently.
Modifier | Constructor and Description |
---|---|
protected |
PropertyValueProvider()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract String |
getValue(javax.faces.context.ExternalContext externalContext,
String name)
Fetch a property value.
|
protected void |
notifyValueChanged(javax.faces.context.ExternalContext externalContext,
String name,
String oldValue)
Implementations of this class are required to call this method when a property value is changed.
|
public abstract String getValue(javax.faces.context.ExternalContext externalContext, String name)
externalContext
- container context object.name
- name of the requested property.null
if the property was not found.NullPointerException
- if the supplied property name is null.protected final void notifyValueChanged(javax.faces.context.ExternalContext externalContext, String name, String oldValue)
externalContext
- container context object.name
- the name of the property who's value changed.oldValue
- the previous value of the property.newValue
- the new value of the property.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.