|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xenonsoft.bridgetown.soa.impl.PropertiesBeanPropertyValueResolver
An implementation of a bean property value resolver that evaluates
the value of the bean according to a Properties.
The class interprets properties if the input value is a String
that matches the start and end delimiters. If the input value
is not recognised the input value is returned as the output
unmodified.
By default the implementation has a start delimiter of "${"
and end delimiter of "}". Therefore properties are only
resolved by default if there are in the form of
"${Your Property Name}".
| Field Summary | |
protected java.lang.String |
endDelimiter
End delimiter string |
protected java.util.Properties |
properties
The properties |
protected java.lang.String |
startDelimiter
Beginning delimiter string |
| Constructor Summary | |
PropertiesBeanPropertyValueResolver()
The default constructor |
|
PropertiesBeanPropertyValueResolver(java.util.Properties properties)
The standard constructor |
|
| Method Summary | |
java.lang.String |
getEndDelimiter()
Gets the endDelimiter |
java.util.Properties |
getProperties()
Gets the properties |
java.lang.String |
getStartDelimiter()
Gets the startDelimiter |
java.lang.Object |
getValue(ValueReferenceConfig valueRef,
java.lang.Object value,
java.lang.String description)
Get the evaluation value of the property value as required to set the bean property during IoC assembly. |
void |
setEndDelimiter(java.lang.String endDelimiter)
Sets the endDelimiter |
void |
setProperties(java.util.Properties properties)
Sets the properties |
void |
setStartDelimiter(java.lang.String startDelimiter)
Sets the startDelimiter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Properties properties
protected java.lang.String startDelimiter
protected java.lang.String endDelimiter
| Constructor Detail |
public PropertiesBeanPropertyValueResolver()
public PropertiesBeanPropertyValueResolver(java.util.Properties properties)
properties - the input properties| Method Detail |
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
properties - The properties to set.public java.lang.String getEndDelimiter()
public void setEndDelimiter(java.lang.String endDelimiter)
endDelimiter - The endDelimiter to set.public java.lang.String getStartDelimiter()
public void setStartDelimiter(java.lang.String startDelimiter)
startDelimiter - The startDelimiter to set.
public java.lang.Object getValue(ValueReferenceConfig valueRef,
java.lang.Object value,
java.lang.String description)
getValue in interface IBeanPropertyValueResolvervalueRef - a reference to the value reference configurationvalue - the input value for the propertydescription - the additional description supplied the
assembly factory for use in error reporting and debugging
IBeanPropertyValueResolver.getValue(com.xenonsoft.bridgetown.soa.config.ValueReferenceConfig, java.lang.Object, java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||