| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.jdeveloper.java.locator.BaseClassLocator
oracle.jdeveloper.java.locator.URLClassLocator
oracle.jdeveloper.java.locator.CachedDirURLClassLocator
public class CachedDirURLClassLocator
The CachedDirURLClassLocator is an implementation of the 
 URL-based ClassLocator which deals with root URLs that are not
 Jar URLs.  This implementation is different from the regular
 DirURLClassLocator in that it is used only for VFS-enabled
 directories.
| Field Summary | 
|---|
| Fields inherited from class oracle.jdeveloper.java.locator.URLClassLocator | 
|---|
| _fileType, _rootURL, CLASS_SUFFIXES, CLASS_TYPE, SOURCE_SUFFIXES, SOURCE_TYPE | 
| Fields inherited from class oracle.jdeveloper.java.locator.BaseClassLocator | 
|---|
| EMPTY_COLLECTION, EMPTY_LOCATOR, EMPTY_STRING_ARRAY | 
| Constructor Summary | |
|---|---|
| protected  | CachedDirURLClassLocator(java.net.URL dirURL,
                         int classType)Constructs a new DirURLClassLocator. | 
| Method Summary | |
|---|---|
|  void | buildIndex()Instructs this class locator to start building its index for locating files. | 
|  void | buildIndexInterruptibly()Instructs this class locator to start building its index for locating files. | 
|  void | getAllClasses(java.util.Collection<java.lang.String> out,
              ClassNameFilter filter)Fetch all of the top-level classes that are known by this locator. | 
|  void | getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
                           ClassNameFilter filter)Get all of the top-level classes that are known by this locator. | 
|  void | getAllPackages(java.util.Collection<java.lang.String> out,
               PackageNameFilter filter)Fetch all of the full packges that are known by this locator. | 
|  void | getClassesInPackage(java.lang.String packagePrefix,
                    java.util.Collection<java.lang.String> out)Fetch the list of top-level classes within the given package, adding them to the out collection provided. | 
|  void | getPackages(java.lang.String packagePrefix,
            java.util.Collection<java.lang.String> out)Fetch the list of subpackages within the given package, adding them to the out collection provided. | 
|  java.net.URL | getResourceURL(java.lang.String resourceName)Fetch the URL for the Java resource file given the resource name. | 
|  java.net.URL | getURL(java.lang.String fqClassName)Fetch the URL for the JavaFile for the given fully-qualified Java class name. | 
| protected static boolean | supportsCache(java.net.URL rootURL)Utility routine to check whether this CachedDirURLClassLocator supports the given rootURL. | 
| Methods inherited from class oracle.jdeveloper.java.locator.URLClassLocator | 
|---|
| getClassURL, getFileType, getRootURL, getSourceURL, isClassTypeLocator, isMatchingFileType, isMatchingFileType, isSourceTypeLocator | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
protected CachedDirURLClassLocator(java.net.URL dirURL,
                                   int classType)
DirURLClassLocator.
dirURL - the root URL we are working withclassType - the file type, either CLASS_TYPE or SOURCE_TYPE| Method Detail | 
|---|
public void buildIndex()
public void buildIndexInterruptibly()
                             throws java.lang.InterruptedException
JavaClassLocator2
buildIndexInterruptibly in interface JavaClassLocator2buildIndexInterruptibly in class BaseClassLocatorjava.lang.InterruptedException - if the build is interrupted
public void getPackages(java.lang.String packagePrefix,
                        java.util.Collection<java.lang.String> out)
getPackages in class BaseClassLocatorpackagePrefix - the package prefix, i.e., "java.io"out - the collection to add the packages
public void getClassesInPackage(java.lang.String packagePrefix,
                                java.util.Collection<java.lang.String> out)
getClassesInPackage in class BaseClassLocatorpackagePrefix - the package prefix, i.e., "java.io"out - the collection to add the class names
public void getAllClasses(java.util.Collection<java.lang.String> out,
                          ClassNameFilter filter)
getAllClasses in class BaseClassLocatorfilter - the class name filter to useout - the collection to add the fully-qualified class names
public void getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
                                       ClassNameFilter filter)
                                throws java.lang.InterruptedException
BaseClassLocator
getAllClassesInterruptibly in class BaseClassLocatorout - the collection where fully qualified class names are addedfilter - the class name filter to use
java.lang.InterruptedException - if the operation is interrupted
public void getAllPackages(java.util.Collection<java.lang.String> out,
                           PackageNameFilter filter)
getAllPackages in class BaseClassLocatorout - the collection to add the full package namesfilter - the package name filter to usepublic java.net.URL getURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation,
        i.e., java.util.Map.Entry.
public java.net.URL getResourceURL(java.lang.String resourceName)
resourceName - the full name of the resource including any file
                     extensions
protected static boolean supportsCache(java.net.URL rootURL)
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||