@Name(value="frameworkPropertyActions") @Scope(value=STATELESS) @Install(precedence=10) public class FrameworkPropertyActions extends Object
ConfigurationService
or the runtime
Framework
.Modifier and Type | Field and Description |
---|---|
protected ConfigurationService |
configurationService |
Constructor and Description |
---|
FrameworkPropertyActions() |
Modifier and Type | Method and Description |
---|---|
String |
getFrameworkProperty(String key)
Returns the given property value from the
Framework if any, otherwise null. |
String |
getFrameworkProperty(String key,
String defValue)
Returns the given property value from the
Framework if any, otherwise the given default value. |
String |
getProperty(String propertyName)
Returns the given property value from the
ConfigurationService if any, otherwise null. |
String |
getProperty(String propertyName,
String defaultValue)
Returns the given property value from the
ConfigurationService if any, otherwise the given default value. |
boolean |
isBooleanPropertyTrue(String propertyName)
Returns true if given property has been setup to true (defaults to false if not set).
|
@In(create=true) protected transient ConfigurationService configurationService
public FrameworkPropertyActions()
public String getProperty(String propertyName)
ConfigurationService
if any, otherwise null.public String getProperty(String propertyName, String defaultValue)
ConfigurationService
if any, otherwise the given default value.public boolean isBooleanPropertyTrue(String propertyName)
ConfigurationService#isBooleanPropertyTrue(String)}
public String getFrameworkProperty(String key)
Framework
if any, otherwise null.public String getFrameworkProperty(String key, String defValue)
Framework
if any, otherwise the given default value.Copyright © 2015 Nuxeo SA. All rights reserved.