Package com.exedio.cope.util
Class ProxyPropertiesSource
- java.lang.Object
-
- com.exedio.cope.util.ProxyPropertiesSource
-
- All Implemented Interfaces:
Properties.Source
public abstract class ProxyPropertiesSource extends Object implements Properties.Source
An proxy implementation ofProperties.Source
. All methods implementingProperties.Source
do forward to anotherProperties.Source
. You may want to subclass this class instead of implementingProperties.Source
directly to make your subclass cope with new methods inProperties.Source
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ProxyPropertiesSource(Properties.Source target)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
get(String key)
String
getDescription()
protected Properties.Source
getTarget()
Collection<String>
keySet()
Returns all keys, for whichProperties.Source.get(String)
does not return null.Properties.Source
reload()
Reloads the contents of this source from its origin, if this makes sense for the implementation.protected abstract ProxyPropertiesSource
reload(Properties.Source reloadedTarget)
String
toString()
-
-
-
Constructor Detail
-
ProxyPropertiesSource
protected ProxyPropertiesSource(Properties.Source target)
-
-
Method Detail
-
getTarget
protected final Properties.Source getTarget()
-
get
public String get(String key)
- Specified by:
get
in interfaceProperties.Source
-
keySet
public Collection<String> keySet()
Description copied from interface:Properties.Source
Returns all keys, for whichProperties.Source.get(String)
does not return null. This operation is optional - if this source does not support this operation, it returns null. The result is always unmodifiable.- Specified by:
keySet
in interfaceProperties.Source
-
reload
public Properties.Source reload()
Description copied from interface:Properties.Source
Reloads the contents of this source from its origin, if this makes sense for the implementation. The reloaded contents are returned as a new source - this source is not modified.If the implementation does not support reloading, simply return
this
, which is also the default implementation.- Specified by:
reload
in interfaceProperties.Source
-
reload
protected abstract ProxyPropertiesSource reload(Properties.Source reloadedTarget)
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceProperties.Source
-
-