|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.germinus.easyconf.EasyConf
public class EasyConf
Main class to obtain the configuration of a software component.
The main method is getConfiguration
which must be
given the name of a component.
Field Summary | |
---|---|
private static java.util.Map |
cache
|
private static Log |
log
|
Constructor Summary | |
---|---|
private |
EasyConf()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Log log
private static java.util.Map cache
Constructor Detail |
---|
private EasyConf()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |