org.apache.ivy.core.cache
class ParserSettingsMonitor extends Object
A ParserSettingsMonitor provide a ParserSettings that must be used in place of the orignal one.
The current implementation consider that a settings changed iff one of the used variable has changed.
Constructor Summary | |
---|---|
ParserSettingsMonitor(ParserSettings settings) |
Method Summary | |
---|---|
void | endMonitoring()
Free the ressource used during the monitoring, keeping only the info
required to evaluate hasChanged. |
ParserSettings | getMonitoredSettings() |
boolean | hasChanged(ParserSettings newSettings)
Check if the newSettings is compatible with the original settings that
has been monitored. |
Returns: The parser settings that must be used in place of the orignal settings The returned object delegates all the call to the original settings.