public class CachingConfigurator extends Object implements Configurator
Configurator
caching the properties to avoid the need for asking the wrapped configurator all the time. This
Configurator
should only be used if the underlying Configurator
never changes.Constructor and Description |
---|
CachingConfigurator(Configurator pNotCachedConfigurator)
Constructur
|
Modifier and Type | Method and Description |
---|---|
Properties |
getPropertiesFor(String name)
Returns a set of properties for a given component name.
|
String |
toString() |
public CachingConfigurator(Configurator pNotCachedConfigurator)
pNotCachedConfigurator
- the wrapped configuratorpublic Properties getPropertiesFor(String name) throws BusException
Properties
object with the same values.getPropertiesFor
in interface Configurator
name
- the name of the component, for example /some/componentProperties
object, with the values defined as the default values for the given component.BusException
- if something failsConfigurator.getPropertiesFor(String)
© 1998- 2021 Escenic AS