public class EasyConf extends Object
getConfiguration which must be
given the name of a component.| Modifier and Type | Method and Description |
|---|---|
static ComponentConfiguration |
getConfiguration(String componentName)
Get the full configuration of the given component.
|
static ComponentConfiguration |
getConfiguration(String companyId,
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(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(String componentName)
componentName - any String which can be used to identified a
configuration component.ComponentConf instancepublic static ComponentConfiguration getConfiguration(String companyId, 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(String componentName)
public static void refreshAll()
Copyright © 2020. All Rights Reserved.