oracle.jdeveloper.vcs.spi
Class VCSSingleSaveObserver
java.lang.Object
oracle.jdeveloper.vcs.spi.VCSSingleSaveObserver
- All Implemented Interfaces:
- Observer
- public class VCSSingleSaveObserver
- extends java.lang.Object
- implements Observer
Observer class to flush a status cache on file save notifications.
- Since:
- 9.0.5
Method Summary |
protected boolean |
isStateChange(java.net.URL url)
Returns true if the specified url can change state due to a save operation. |
void |
update(java.lang.Object observed, UpdateMessage change)
Notification message. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VCSSingleSaveObserver
public VCSSingleSaveObserver(VCSStatusCache cache)
- Constructor.
- Parameters:
cache
- the status cache for the save observer.
isStateChange
protected boolean isStateChange(java.net.URL url)
- Returns true if the specified url can change state due to a save operation. By default, returns true regardless of the specified url.
-
- Parameters:
url
- the url to check
- Returns:
- true if saving the specified url can cause a state change.
update
public void update(java.lang.Object observed,
UpdateMessage change)
- Description copied from interface:
Observer
- Notification message. Subjects call this method when they notify their observers that the subjects state has changed.
-
- Specified by:
update
in interface Observer
-
- Parameters:
observed
- the subject whose state has changed.
change
- what has changed.
Copyright © 1997, 2004, Oracle. All rights reserved.