Package org.imixs.workflow.office.config
Class PropertyController
java.lang.Object
org.imixs.workflow.office.config.PropertyController
- All Implemented Interfaces:
Serializable
This PropertyController provides access to the Microprofile config api.
The PropertyController can be used in a JSF page to access a specific property by name:
#{propertyController.getProperty('my-property')}
#{propertyController.getProperty('another-property','default value')}
- Author:
- rsoika
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProperty(String key) Returns a property valuegetProperty(String key, String defaultValue) Returns a property value
-
Constructor Details
-
PropertyController
public PropertyController()
-
-
Method Details
-
getProperty
Returns a property value- Parameters:
key- - the property key- Returns:
- property value
-
getProperty
Returns a property value- Parameters:
key- - the property keydefaultValue- - optional default value if property not defined- Returns:
- property value
-