|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.tomgibara.pronto.config.source.SynchronizedConfigSource
public class SynchronizedConfigSource
Instances of this class wrap other ConfigSource instances and ensure that its ConfigSource methods are safe for concurrent access.
| Constructor Summary | |
|---|---|
SynchronizedConfigSource(ConfigSource source)
Constructs a new ConfigSource which synchronizes access to the methods of another ConfigSource. |
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getProperties()
A map of the configuration properties supplied by this source. |
ConfigSource |
getSource()
The ConfigSource object which is being synchronized by this object. |
long |
lastModified()
Returns the time at which the properties were last known to have changed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SynchronizedConfigSource(ConfigSource source)
source - the source to be synchronized, not null| Method Detail |
|---|
public ConfigSource getSource()
public long lastModified()
throws java.lang.RuntimeException
ConfigSource
lastModified in interface ConfigSourcejava.lang.RuntimeException - if the underlying source throws one
public java.util.Map<java.lang.String,java.lang.String> getProperties()
throws java.lang.RuntimeException
ConfigSource
getProperties in interface ConfigSourcejava.lang.RuntimeException - if the underlying source throws one
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||