|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.config.ConfigFactory
public final class ConfigFactory
Factory that manages a buffer of couples ConfigValidator
/Properties
Field Summary | |
---|---|
static String |
DEFAULT_CONFIG
Default config location |
static String |
SYSTEM_PROP_CONFIG_LOCATION
System property used to set the location the properties file on startup |
Method Summary | |
---|---|
static String |
getConfigLocation()
|
static ConfigValidator |
getConfigValidator()
|
static ConfigValidator |
getConfigValidator(List<String> expectedProps)
|
static ConfigValidator |
getConfigValidatorFor(String... expectedProps)
returns the ConfigValidator for the given required properties. |
static void |
invalidate()
This method will invalidate all the config instances due to reload properties. |
static void |
setConfigLocation(String configLocation)
|
static void |
setLocation(InputStream is)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SYSTEM_PROP_CONFIG_LOCATION
public static final String DEFAULT_CONFIG
Method Detail |
---|
public static ConfigValidator getConfigValidator()
public static ConfigValidator getConfigValidator(List<String> expectedProps)
public static ConfigValidator getConfigValidatorFor(String... expectedProps)
expectedProps
- one ore more required property name
ConfigValidator
public static void invalidate()
public static String getConfigLocation() throws TechnicalConnectorException
TechnicalConnectorException
public static void setConfigLocation(String configLocation) throws TechnicalConnectorException
configLocation
- the configLocation to set
TechnicalConnectorException
public static void setLocation(InputStream is) throws TechnicalConnectorException
TechnicalConnectorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |