|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.jdeveloper.vcs.spi.VCSSingleNodeObserver
public class VCSSingleNodeObserver
Observer class to flush a status cache on node events, including reloading and file save notifications.
Constructor Summary | |
---|---|
VCSSingleNodeObserver() Constructs a new VCSSingleNodeObserver whose VCSStatusCache and, optionally, URLFilter may be subsequently set using the setStatusCache(VCSStatusCache) and setURLFilter(URLFilter) methods. |
|
VCSSingleNodeObserver(VCSStatusCache cache, URLFilter urlfilter) Deprecated. replaced by VCSSingleNodeObserver(VCSStatusCache,URLFilter,String) . |
|
VCSSingleNodeObserver(VCSStatusCache cache, URLFilter urlfilter, java.lang.String vcsId) Constructor. |
Method Summary | |
---|---|
protected void |
clearStatusCacheParentURLs(java.net.URL url) Clears the internal status cache for any parent directories. |
VCSStatusCache |
getStatusCache() Gets the status cache of this save observer. |
java.lang.String |
getSystemId() Gets the VCS extension ID of the observer. |
URLFilter |
getURLFilter() Gets the url filter of this save observer. |
void |
handleMessage(VCSEBMessage message) Handles a message sent on the VCSEventBus . |
protected boolean |
isSaveStateChange(java.net.URL url) Returns true if the specified url can change state due to a save operation. |
protected void |
nodeReloaded(java.net.URL url) Responds to notification that a node object has been reloaded. |
protected void |
nodeRenamed(java.net.URL oldUrl, java.net.URL newUrl) Responds to notification that a node object has been renamed. |
protected void |
nodeSaved(java.net.URL url) Deprecated. replaced by nodeSaved(URL[]) . |
protected void |
nodeSaved(java.net.URL[] urls) Responds to notification that node objects have been saved. |
void |
setStatusCache(VCSStatusCache cache) Sets the status cache of this save observer. |
void |
setSystemId(java.lang.String systemId) Sets the VCS extension ID of the observer. |
void |
setURLFilter(URLFilter filter) Sets the url filter of this save observer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VCSSingleNodeObserver()
VCSSingleNodeObserver
whose VCSStatusCache
and, optionally, URLFilter
may be subsequently set using the setStatusCache(VCSStatusCache)
and setURLFilter(URLFilter)
methods.
@Deprecated
public VCSSingleNodeObserver(VCSStatusCache cache,
URLFilter urlfilter)
VCSSingleNodeObserver(VCSStatusCache,URLFilter,String)
.cache
- the status cache for the save observer.urlfilter
- the URLFilter
defining relevant urlspublic VCSSingleNodeObserver(VCSStatusCache cache, URLFilter urlfilter, java.lang.String vcsId)
cache
- the status cache for the save observer.urlfilter
- the URLFilter
defining relevant urlsvcsId
- the VCS extension ID.Method Detail |
---|
public VCSStatusCache getStatusCache()
public void setStatusCache(VCSStatusCache cache)
handleMessage(VCSEBMessage)
is not defined.cache
- the VCSStatusCache
.public URLFilter getURLFilter()
URLFilter
.public void setURLFilter(URLFilter filter)
handleMessage(VCSEBMessage)
is not defined.filter
- the required URLFilter
.public java.lang.String getSystemId()
public void setSystemId(java.lang.String systemId)
systemId
- the VCS extension ID.protected boolean isSaveStateChange(java.net.URL url)
url
- the URL to checkprotected void clearStatusCacheParentURLs(java.net.URL url)
url
- the URL whose parents should be cleared from the status cache.protected void nodeSaved(java.net.URL url)
nodeSaved(URL[])
.url
- the URL of the saved object.protected void nodeSaved(java.net.URL[] urls)
urls
- the URLs of the saved objects.protected void nodeReloaded(java.net.URL url)
url
- the URL of the reloaded object.protected void nodeRenamed(java.net.URL oldUrl, java.net.URL newUrl)
oldUrl
- the old URL of the renamed object.newUrl
- the new URL of the renamed object.public void handleMessage(VCSEBMessage message)
VCSEBComponent
VCSEventBus
.handleMessage
in interface VCSEBComponent
message
- the message to handle.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.9.0) E52944-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |