|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationKeyHelper
Helper to construct configuration keys.
Method Summary | |
---|---|
ConfigurationKey<?> |
load(ApplicationId applicationId) Loads the configuration key using the given applicationId and determines the environmentId through system properties or defaults (null for the environment and hostname for the node). |
ConfigurationKey<?> |
load(Class<?> locator) Loads the application identifier from the manifest file pointed at by the given locator class. |
ConfigurationKey<?> |
load(EnvironmentId environmentId, Class<?> locator) Loads the application identifier from the manifest file pointed at by the given locator class. |
ConfigurationKey<?> |
load(String environmentName, Class<?> locator) Loads the application identifier from the manifest file pointed at by the given locator class. |
Method Detail |
---|
ConfigurationKey<?> load(Class<?> locator) throws IllegalStateException
locator
class.
locator
- the class to locate the manifest file to load. It is the manifest file of the archive this class is part of.
IllegalStateException
- if the application identifier cannot be read from the manifest.
load(EnvironmentId, Class)
ConfigurationKey<?> load(String environmentName, Class<?> locator) throws IllegalStateException
locator
class.
environmentName
- the name of the environment of use. May be
null
if the value of the system property
#SYSTEM_PROPERTY_ENVIRONMENT_NAME
should be used (along with the node name defined by
#SYSTEM_PROPERTY_ENVIRONMENT_NODE
). If not specified, the name of the host of this runtime is determined.
locator
- the class to locate the manifest file to load. It is the manifest file of the archive this class is part of.
IllegalStateException
- if the application identifier cannot be read from the manifest.
load(EnvironmentId, Class)
ConfigurationKey<?> load(EnvironmentId environmentId, Class<?> locator) throws IllegalStateException
locator
class.
environmentId
- the environment part of the configuration key to construct.
locator
- the class to locate the manifest file to load. It is the manifest file of the archive this class is part of.
IllegalStateException
- if the application identifier cannot be read from the manifest.
load(Class)
,
load(String, Class)
ConfigurationKey<?> load(ApplicationId applicationId)
applicationId
- the application part of the configuration key to construct.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |