public interface PropertyConfigurable
Modifier and Type | Method and Description |
---|---|
boolean |
addPostConfigurationMethod(java.lang.String methodName)
Adds a method name to be invoked after all properties have been set.
|
java.util.List<java.lang.String> |
getConstructorProperties()
Returns a collection of the constructor properties.
|
java.util.List<java.lang.String> |
getPostConfigurationMethods()
Returns a collection of the methods to be invoked after the properties have been set.
|
java.util.List<java.lang.String> |
getPropertyNames()
Get the names of the configured properties in order.
|
ValueExpression<java.lang.String> |
getPropertyValueExpression(java.lang.String propertyName)
Get the property value.
|
java.lang.String |
getPropertyValueString(java.lang.String propertyName)
Get the string property value with the given name.
|
boolean |
hasConstructorProperty(java.lang.String propertyName)
Determine whether the given property name is a constructor property.
|
boolean |
hasProperty(java.lang.String propertyName)
Determine whether the given property name is configured.
|
boolean |
removePostConfigurationMethod(java.lang.String methodName)
Removes the post configuration method.
|
boolean |
removeProperty(java.lang.String propertyName)
Remove a configured property.
|
void |
setPostConfigurationMethods(java.util.List<java.lang.String> methodNames)
Sets the method names to be invoked after the properties have been set.
|
void |
setPostConfigurationMethods(java.lang.String... methodNames)
Sets the method names to be invoked after the properties have been set.
|
void |
setPropertyValueExpression(java.lang.String propertyName,
java.lang.String expression)
Sets the expression value for the property.
|
void |
setPropertyValueExpression(java.lang.String propertyName,
java.lang.String expression,
java.lang.String value)
Sets the expression value for the property.
|
void |
setPropertyValueString(java.lang.String propertyName,
java.lang.String value)
Set a property value from a string.
|
void setPropertyValueString(java.lang.String propertyName, java.lang.String value) throws java.lang.IllegalArgumentException
propertyName
- the property namevalue
- the property valuejava.lang.IllegalArgumentException
- if the given value is not acceptable for this propertyjava.lang.String getPropertyValueString(java.lang.String propertyName)
propertyName
- the property nameValueExpression<java.lang.String> getPropertyValueExpression(java.lang.String propertyName)
propertyName
- the property namevoid setPropertyValueExpression(java.lang.String propertyName, java.lang.String expression)
propertyName
- the name of the propertyexpression
- the expression used to resolve the valuevoid setPropertyValueExpression(java.lang.String propertyName, java.lang.String expression, java.lang.String value)
value
parameter for the
value.propertyName
- the name of the propertyexpression
- the expression used to resolve the valuevalue
- the value to useboolean hasProperty(java.lang.String propertyName)
propertyName
- the property name to testtrue
if the name is configured, false
otherwiseboolean removeProperty(java.lang.String propertyName)
propertyName
- the property nametrue
if the property name was removed, false
if it was not presentjava.util.List<java.lang.String> getPropertyNames()
boolean hasConstructorProperty(java.lang.String propertyName)
propertyName
- the name of the property to check.true
if the property should be used as a construction property, otherwise false
.java.util.List<java.lang.String> getConstructorProperties()
boolean addPostConfigurationMethod(java.lang.String methodName)
methodName
- the name of the methodtrue
if the method was successfully added, otherwise false
java.util.List<java.lang.String> getPostConfigurationMethods()
void setPostConfigurationMethods(java.lang.String... methodNames)
methodNames
- the method names to invokevoid setPostConfigurationMethods(java.util.List<java.lang.String> methodNames)
methodNames
- the method names to invokeboolean removePostConfigurationMethod(java.lang.String methodName)
methodName
- the method to removetrue
if the method was removed, otherwise false