public class EasyConf
extends java.lang.Object
getConfiguration
which must be
given the name of a component.Modifier and Type | Field | Description |
---|---|---|
private static java.util.Map |
cache |
|
private static Log |
log |
Modifier | Constructor | Description |
---|---|---|
private |
EasyConf() |
Modifier and Type | Method | Description |
---|---|---|
static ComponentConfiguration |
getConfiguration(java.lang.String componentName) |
Get the full configuration of the given component.
|
static ComponentConfiguration |
getConfiguration(java.lang.String companyId,
java.lang.String componentName) |
Get the full configuration of the given component, for the given company.
|
static void |
refreshAll() |
Refresh the configuration of all components
KNOWN BUG: this method does not refresh the properties configuration because the underlying
library Jakarta Commons Configuration also contains a cache which is not refreshable.
|
static void |
refreshComponent(java.lang.String componentName) |
Refresh the configuration of the given component
KNOWN BUG: this method does not refresh the properties configuration because the underlying
library Jakarta Commons Configuration also contains a cache which is not refreshable.
|
public static ComponentConfiguration getConfiguration(java.lang.String componentName)
componentName
- any String which can be used to identified a
configuration component.ComponentConf
instancepublic static ComponentConfiguration getConfiguration(java.lang.String companyId, java.lang.String componentName)
companyId
- the identifier of the company whose specific
configuration should be readcomponentName
- any String which can be used to identified a
configuration component.ComponentConf
instancepublic static void refreshComponent(java.lang.String componentName)
public static void refreshAll()