public class ApplicationConfig extends Object implements Serializable
The configuration parameters specified have not been run through the substitution engine.
The methods in this class do not differentiate between properties set directly for this application and ones which have default values as specified in the ESSAPP configuration.
Constructor and Description |
---|
ApplicationConfig(String appName,
Map essProps,
Map appProps)
Constructor
|
Modifier and Type | Method and Description |
---|---|
Collection |
getAppConfigProperties()
Gets the properties defined by the application.
|
String |
getApplicationName()
Gets the logical name of the application whose configuration this is.
|
Collection |
getEssConfigProperties()
Gets the properties defined by ESS.
|
ConfigProperty |
getProperty(String propertyName)
Gets the property information for the given property name.
|
String |
getValue(String propertyName)
Gets the value of the specified property.
|
boolean |
isPropertySet(String propertyName)
Has the given configuration property been set for this application?
|
public ApplicationConfig(String appName, Map essProps, Map appProps)
appName
- the name of the application whose configuration this
object representsessProps
- the ESS defined configuration properties for
this applicationappProps
- the application defined configuration properties for
this applicationpublic String getApplicationName()
public boolean isPropertySet(String propertyName)
propertyName
- the name of the propertytrue
if the property has been set, false
otherwise.public String getValue(String propertyName)
null
.propertyName
- the name of the propertynull
if
it has not.public ConfigProperty getProperty(String propertyName)
propertyName
- the name of the propertypublic Collection getEssConfigProperties()
public Collection getAppConfigProperties()