Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## be.ehealth.technicalconnector.config
Class ConfigFactory

    java.lang.Object
      be.ehealth.technicalconnector.config.ConfigFactory

    public final class ConfigFactory

extends Object

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

### SYSTEM_PROP_CONFIG_LOCATION

    public static final String SYSTEM_PROP_CONFIG_LOCATION

  System property used to set the location the properties file on startup

  See Also:
    Constant Field Values

### DEFAULT_CONFIG

    public static final String DEFAULT_CONFIG

  Default config location

  See Also:
    Constant Field Values

Method Detail

### getConfigValidator

    public static ConfigValidator getConfigValidator()

### getConfigValidator

    public static ConfigValidator getConfigValidator(List<String> expectedProps)

### getConfigValidatorFor

    public static ConfigValidator getConfigValidatorFor(String... expectedProps)

  returns the ConfigValidator for the given required properties.

  Parameters:
    `expectedProps` - one ore more required property name
  Returns:
    `ConfigValidator`

### invalidate

    public static void invalidate()

  This method will invalidate all the config instances due to reload properties.

### getConfigLocation

    public static String getConfigLocation()
                                    throws TechnicalConnectorException

  Returns:
    the configLocation
  Throws:
    `TechnicalConnectorException`

### setConfigLocation

    public static void setConfigLocation(String configLocation)
                                  throws TechnicalConnectorException

  Parameters:
    `configLocation` - the configLocation to set
  Throws:
    `TechnicalConnectorException`

### setLocation

    public static void setLocation(InputStream is)
                            throws TechnicalConnectorException

  Throws:
    `TechnicalConnectorException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Connector Packaging PHYSIOTHERAPIST 3.11.1 API
Copyright © {inceptionYear}-2016 eHealth. All Rights Reserved.