public class ConfigurationBasedDeploymentContext extends SimpleDeploymentContext
DeploymentContext
based on system wide configuration set with
ConfigurationManager
. All the getters will first consult corresponding property
and return the value if set.DeploymentContext.ContextKey
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEPLOYMENT_APPLICATION_ID_PROPERTY
Deprecated.
|
static java.lang.String |
DEPLOYMENT_DATACENTER_PROPERTY
Deprecated.
|
static java.lang.String |
DEPLOYMENT_ENVIRONMENT_PROPERTY
Deprecated.
|
static java.lang.String |
DEPLOYMENT_REGION_PROPERTY
Deprecated.
|
static java.lang.String |
DEPLOYMENT_SERVER_ID_PROPERTY
Deprecated.
|
static java.lang.String |
DEPLOYMENT_STACK_PROPERTY
Deprecated.
|
Constructor and Description |
---|
ConfigurationBasedDeploymentContext() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getApplicationId()
Get the deployment environment.
|
java.lang.String |
getDeploymentDatacenter()
Get the deployment environment.
|
java.lang.String |
getDeploymentEnvironment()
Get the deployment environment.
|
java.lang.String |
getDeploymentRegion()
Get the deployment environment.
|
java.lang.String |
getDeploymentServerId()
Get the deployment environment.
|
java.lang.String |
getDeploymentStack()
Get the deployment environment.
|
java.lang.String |
getValue(DeploymentContext.ContextKey key) |
void |
setApplicationId(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
void |
setDeploymentDatacenter(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
void |
setDeploymentEnvironment(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
void |
setDeploymentRegion(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
void |
setDeploymentServerId(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
void |
setDeploymentStack(java.lang.String value)
Call super and also update the configuration to reflect the changes.
|
setValue
@Deprecated public static final java.lang.String DEPLOYMENT_ENVIRONMENT_PROPERTY
ContextKey#getKey()
on ContextKey#environment
as the property to set or get@Deprecated public static final java.lang.String DEPLOYMENT_DATACENTER_PROPERTY
ContextKey#getKey()
on ContextKey#datacenter
as the property to set or get@Deprecated public static final java.lang.String DEPLOYMENT_APPLICATION_ID_PROPERTY
ContextKey#getKey()
on ContextKey#appId
as the property to set or get@Deprecated public static final java.lang.String DEPLOYMENT_SERVER_ID_PROPERTY
ContextKey#getKey()
on ContextKey#serverId
as the property to set or get@Deprecated public static final java.lang.String DEPLOYMENT_STACK_PROPERTY
ContextKey#getKey()
on ContextKey#stack
as the property to set or get@Deprecated public static final java.lang.String DEPLOYMENT_REGION_PROPERTY
ContextKey#getKey()
on ContextKey#environment
as the property to set or getpublic java.lang.String getDeploymentEnvironment()
getDeploymentEnvironment
in interface DeploymentContext
getDeploymentEnvironment
in class SimpleDeploymentContext
public void setDeploymentEnvironment(java.lang.String value)
setDeploymentEnvironment
in interface DeploymentContext
setDeploymentEnvironment
in class SimpleDeploymentContext
value
- public java.lang.String getDeploymentDatacenter()
getDeploymentDatacenter
in interface DeploymentContext
getDeploymentDatacenter
in class SimpleDeploymentContext
public void setDeploymentDatacenter(java.lang.String value)
setDeploymentDatacenter
in interface DeploymentContext
setDeploymentDatacenter
in class SimpleDeploymentContext
value
- public java.lang.String getApplicationId()
getApplicationId
in interface DeploymentContext
getApplicationId
in class SimpleDeploymentContext
public void setApplicationId(java.lang.String value)
setApplicationId
in interface DeploymentContext
setApplicationId
in class SimpleDeploymentContext
value
- public java.lang.String getDeploymentServerId()
getDeploymentServerId
in interface DeploymentContext
getDeploymentServerId
in class SimpleDeploymentContext
public void setDeploymentServerId(java.lang.String value)
setDeploymentServerId
in interface DeploymentContext
setDeploymentServerId
in class SimpleDeploymentContext
value
- public java.lang.String getDeploymentStack()
getDeploymentStack
in interface DeploymentContext
getDeploymentStack
in class SimpleDeploymentContext
public void setDeploymentStack(java.lang.String value)
setDeploymentStack
in interface DeploymentContext
setDeploymentStack
in class SimpleDeploymentContext
value
- public java.lang.String getDeploymentRegion()
getDeploymentRegion
in interface DeploymentContext
getDeploymentRegion
in class SimpleDeploymentContext
public void setDeploymentRegion(java.lang.String value)
setDeploymentRegion
in interface DeploymentContext
setDeploymentRegion
in class SimpleDeploymentContext
value
- public java.lang.String getValue(DeploymentContext.ContextKey key)
getValue
in interface DeploymentContext
getValue
in class SimpleDeploymentContext