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