org.broadleafcommerce.common.config
Class SystemPropertyRuntimeEnvironmentKeyResolver
java.lang.Object
org.broadleafcommerce.common.config.SystemPropertyRuntimeEnvironmentKeyResolver
- All Implemented Interfaces:
- RuntimeEnvironmentKeyResolver
public class SystemPropertyRuntimeEnvironmentKeyResolver
- extends Object
- implements RuntimeEnvironmentKeyResolver
Determines the current runtime environment by reading a system property
(specified in environmentKey); if no system property is specified, a
(reasonable) default of "runtime.environment" is used.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
environmentKey
protected String environmentKey
SystemPropertyRuntimeEnvironmentKeyResolver
public SystemPropertyRuntimeEnvironmentKeyResolver()
resolveRuntimeEnvironmentKey
public String resolveRuntimeEnvironmentKey()
- Description copied from interface:
RuntimeEnvironmentKeyResolver
- Determine and return the runtime environment; if an implementation is
unable to determine the runtime environment, null can be returned to
indicate this.
- Specified by:
resolveRuntimeEnvironmentKey in interface RuntimeEnvironmentKeyResolver
setEnvironmentKey
public void setEnvironmentKey(String environmentKey)
Copyright © 2013. All Rights Reserved.