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.impl
Class ConfigurationImpl

    java.lang.Object
      be.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl
          be.ehealth.technicalconnector.config.impl.ConfigurationImpl

All Implemented Interfaces:
  Configuration

    public final class ConfigurationImpl

extends AbstractConfigurationImpl

Implementation of `Configuration`

Field Summary
`static String` | `SYSPROP_MODULE_LOADING` Property to (des)activate the module loading of the configuration factory.

Method Summary
`Configuration` | `getCurrentConfig()`
`static Configuration` | `getInstance()`
`Properties` | `getProperties()` Deprecated.
`String` | `getProperty(String key, String defaultValue)` Gets the property by Key.
`boolean` | `hasProperty(String key)` Checks for property.
`void` | `invalidate()` Method to invalidate all the cached configuration.
`boolean` | `isReloading()`
`void` | `reload()` reloads the instance, and reloads the config modules.
`static void` | `reset()`
`void` | `setConfigLocation(String location)` Deprecated.
`void` | `setProperty(String key, String value)` Method to override a property at runtime.

Methods inherited from class be.ehealth.technicalconnector.config.impl.AbstractConfigurationImpl
`containsKey, getBooleanProperty, getDurationProperty, getIntegerProperty, getLongProperty, getMatchingProperties, getProperty, getURLProperty, hasDurationProperty, hasMatchingProperty, hasMatchingProperty`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### SYSPROP_MODULE_LOADING

    public static final String SYSPROP_MODULE_LOADING

  Property to (des)activate the module loading of the configuration factory.

  Default value: true

  See Also:
    Constant Field Values

Method Detail

### reset

    public static void reset()

### reload

    public void reload()
                throws TechnicalConnectorException

  reloads the instance, and reloads the config modules.

  Throws:
    `TechnicalConnectorException`

### isReloading

    public boolean isReloading()

### setConfigLocation

    @Deprecated
    public void setConfigLocation(String location)
                           throws TechnicalConnectorException

  Deprecated.

  Description copied from interface: `Configuration`
  Sets the configLocation and remove the current configuration. when used with a null value , the default configuration is set.

  Throws:
    `TechnicalConnectorException`

### getCurrentConfig

    public Configuration getCurrentConfig()
                                   throws TechnicalConnectorException

  Returns:
    the currenct configuration;
  Throws:
    `TechnicalConnectorException`

### getInstance

    public static Configuration getInstance()
                                     throws TechnicalConnectorException

  Throws:
    `TechnicalConnectorException`

### setProperty

    public void setProperty(String key,
                            String value)

  Description copied from interface: `Configuration`
  Method to override a property at runtime.

  Specified by:
    `setProperty` in interface `Configuration`
  Specified by:
    `setProperty` in class `AbstractConfigurationImpl`
  Parameters:
    `key` - the key
    `value` - the value

### hasProperty

    public boolean hasProperty(String key)

  Description copied from interface: `Configuration`
  Checks for property.

  Specified by:
    `hasProperty` in interface `Configuration`
  Specified by:
    `hasProperty` in class `AbstractConfigurationImpl`
  Parameters:
    `key` - the key
  Returns:
    true, if successful

### getProperty

    public String getProperty(String key,
                              String defaultValue)

  Description copied from interface: `Configuration`
  Gets the property by Key.

  Specified by:
    `getProperty` in interface `Configuration`
  Specified by:
    `getProperty` in class `AbstractConfigurationImpl`
  Parameters:
    `key` - the key
    `defaultValue` - the default value
  Returns:
    the property

### getProperties

    @Deprecated
    public Properties getProperties()

  Deprecated.

### invalidate

    public void invalidate()

  Description copied from interface: `Configuration`
  Method to invalidate all the cached configuration.

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 generic 3.12.1 API
Copyright © {inceptionYear}-2017 eHealth. All Rights Reserved.