|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.bootstrap.DeploymentProperties
Class that encapsulates Deployment Properties within the bootstrapper. This is the only class in all of Carbon that logs using System.out and uses a direct extension of RuntimeException for exception handling. Copyright 2002 Sapient
Field Summary | |
private static String |
DEPLOYMENT_CONFIG_FILE_NAME
The default name of the carbon core deployement property file |
private Properties |
deploymentProperties
The internal store of properties |
private org.apache.commons.logging.Log |
log
The handle to Apache-commons logger |
Constructor Summary | |
(package private) |
DeploymentProperties()
|
Method Summary | |
private Properties |
fetchDeploymentProperties()
Fetches the Properties object used for deploymentProperties |
String |
get(String key)
This method provides access to properties that are specific to this deployment of Carbon. |
Object |
set(String key,
String value)
This method sets Deployment properties. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
private static final String DEPLOYMENT_CONFIG_FILE_NAME
private final Properties deploymentProperties
Constructor Detail |
DeploymentProperties()
Method Detail |
public String get(String key)
ClassLoader.getResource
method. Deployment Properties
should be properties that either change based on deployment or are
required before the ConfigurationService
is loaded. Cases
of properties varying based on deployment should be minimal. In this
case, the DeploymentService
should be used.
This method has the same semantics as java.util.Properties.getProperty(String)
key
- the name of the property
ClassLoader.getResource(String)
,
Properties.getProperty(String)
,
DeploymentService
public Object set(String key, String value)
This method has the same semantics as java.util.Properties.setProperty(String, String)
key
- key to set a deployment propertyvalue
- value to set for the property
Properties.setProperty(String, String)
private Properties fetchDeploymentProperties()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |