Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

oracle.jdeveloper.vcs.spi
Class VCSControlCache

java.lang.Object
  extended by java.util.Observable
      extended by oracle.jdeveloper.vcs.spi.VCSControlCache

public class VCSControlCache
extends java.util.Observable

Singleton class caching associations between known URLs and the VCSExtensions controlling them.

Since:
11.1.1.0.0
See Also:
VCSExtension.isControlled(URL)

Method Summary
 void fireControlStateChanged(java.lang.String vcsId)
          Fires a notification that the control state for the given extension has changed.
static VCSControlCache getInstance()
          Gets the singleton instance of this class.
 boolean isControlled(java.net.URL url, java.lang.String vcsId)
          Asks whether the given URL is controlled by the given extension.
static void resetExtensions()
           
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static final VCSControlCache getInstance()
Gets the singleton instance of this class.

Returns:
the instance.

isControlled

public boolean isControlled(java.net.URL url,
                            java.lang.String vcsId)
Asks whether the given URL is controlled by the given extension.

Parameters:
url - the URL.
vcsId - an extension ID.
Returns:
a verdict on whether the URL is controlled.

fireControlStateChanged

public void fireControlStateChanged(java.lang.String vcsId)
Fires a notification that the control state for the given extension has changed. This method must be invoked when new URLs come to be recognized by a version control extension or others become unrecognized. For example, such a situation might occur when changing views (in a system such as ClearCase) or when a branch is sent from the server into a local working copy (CVS or Subversion).

Parameters:
vcsId - the extension ID.

resetExtensions

public static final void resetExtensions()

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.