| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08  | 
|||||||||
| 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.ProjectClassLocator
public class ProjectClassLocator
The ProjectClassLocator is an implementation of the
 JavaClassLocator to locate classes for a Project instance.
| Field Summary | |
|---|---|
protected static boolean | 
ALL_LIBRARIES
Constant indicating all libraries  | 
protected static boolean | 
EXPORTED_LIBRARIES
Constant indicating we want only exported libraries.  | 
| Fields inherited from class oracle.jdeveloper.java.locator.BaseClassLocator | 
|---|
EMPTY_COLLECTION, EMPTY_LOCATOR, EMPTY_STRING_ARRAY | 
| 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.  | 
protected static URLPath | 
getAddedClassPathFor(Project project)
Utility routine to fetch the added classpath for the given project.  | 
protected  void | 
getAllClasses(java.util.Collection<java.lang.String> out,
              ClassNameFilter filter)
Fetch all of the top-level classes that are known by this locator.  | 
protected  void | 
getAllClassesInterruptibly(java.util.Collection<java.lang.String> out,
                           ClassNameFilter filter)
Get all of the top-level classes that are known by this locator.  | 
protected  void | 
getAllPackages(java.util.Collection<java.lang.String> out,
               PackageNameFilter filter)
Fetch all of the full packges that are known by this locator.  | 
protected  void | 
getAllPackagesInterruptibly(java.util.Collection<java.lang.String> out,
                            PackageNameFilter filter)
Get all of the full packges that are known by this locator.  | 
protected  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.  | 
protected  void | 
getClassesInPackageInterruptibly(java.lang.String packagePrefix,
                                 java.util.Collection<java.lang.String> out)
Get the list of top-level classes within the package.  | 
 java.net.URL | 
getClassURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getClassURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name.  | 
static java.util.Collection | 
getDependentsFor(Project project)
Utility routine to fetch the dependents for the given project.  | 
protected static ProjectClassLocator | 
getInstance(Project project)
Get the class locator instance for a project.  | 
protected static ProjectClassLocator | 
getInstanceInterruptibly(Project project)
Get the class locator instance for a project.  | 
protected static Library | 
getJDKFor(Project project)
Utility routine to fetch the JDK for the given project.  | 
protected static Library[] | 
getLibrariesFor(Project project,
                boolean exportsOnly)
Utility routine to fetch the libraries for the given project.  | 
protected static URLPath | 
getModuleConfigClassPathFor(Project project)
Utility routine to fetch the module config classpath for the given project.  | 
 java.net.URL | 
getNonProjectSourceURL(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getNonProjectSourceURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
protected static java.net.URL | 
getOutputURLFor(Project project)
Utility routine to fetch the output URL for the given project.  | 
protected  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.  | 
protected  void | 
getPackagesInterruptibly(java.lang.String packagePrefix,
                         java.util.Collection<java.lang.String> out)
Get the list of subpackages within the given package.  | 
 java.net.URL | 
getProjectSourceURL(java.lang.String fqClassName,
                    boolean includeDependencies)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getProjectSourceURLInterruptibly(java.lang.String fqClassName,
                                 boolean includeDependencies)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getResourceURL(java.lang.String resourceName)
Fetch the URL for the Java resource file given the resource name.  | 
static URLPath | 
getSourcePathFor(Project project)
Utility routine to fetch the source path for the given project.  | 
 java.net.URL | 
getSourceURL(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getSourceURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the SourceFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getURL(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name.  | 
 java.net.URL | 
getURLInterruptibly(java.lang.String fqClassName)
Fetch the URL for the JavaFile for the given fully-qualified Java class name.  | 
protected static void | 
processDependenciesRecurse(Project project,
                           java.util.List traversedList,
                           java.util.List libraryList,
                           java.util.List<oracle.jdeveloper.java.locator.DeploymentClassLocator.DeploymentPaths> deploymentList,
                           URLPath sourcePath,
                           URLPath classPath,
                           boolean exportsOnly,
                           boolean checkInterrupt)
Utility routine which recursively processes a project's dependencies.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected static final boolean EXPORTED_LIBRARIES
protected static final boolean ALL_LIBRARIES
| Method Detail | 
|---|
protected static ProjectClassLocator getInstance(Project project)
project - the project
protected static ProjectClassLocator getInstanceInterruptibly(Project project)
                                                       throws java.lang.InterruptedException
project - the project
java.lang.InterruptedException - if the calling thread is interrupted while
   creating the class locator instance
protected static void processDependenciesRecurse(Project project,
                                                 java.util.List traversedList,
                                                 java.util.List libraryList,
                                                 java.util.List<oracle.jdeveloper.java.locator.DeploymentClassLocator.DeploymentPaths> deploymentList,
                                                 URLPath sourcePath,
                                                 URLPath classPath,
                                                 boolean exportsOnly,
                                                 boolean checkInterrupt)
                                          throws java.lang.InterruptedException
project - the project to process the paths and dependencies oftraversedList - the list of projects that have already 
        been traversedlibraryList - the list of libraries that are part of the project
        or any of its dependentsdeploymentList - the list of deployment profiles that the project
        depends onsourcePath - the sourcepath of the project or any of its dependentsclassPath - the classpath of the project or any of its dependentsexportsOnly - whether to include only exported libraries
        (vs. all libraries)checkInterrupt - whether to check for interruption
java.lang.InterruptedException - if the operation is interruptedpublic static java.util.Collection getDependentsFor(Project project)
project - the projects to fetch the dependents for
protected static URLPath getAddedClassPathFor(Project project)
project - the project to get the added classpath for
protected static URLPath getModuleConfigClassPathFor(Project project)
project - the project to get the module config classpath for
protected static java.net.URL getOutputURLFor(Project project)
project - the project to fetch the output url for
public static URLPath getSourcePathFor(Project project)
project - the project to fetch the source path for
protected static Library getJDKFor(Project project)
project - the project to fetch the JDK for
protected static Library[] getLibrariesFor(Project project,
                                           boolean exportsOnly)
project - the project to fetch the libraries forexportsOnly - whether to include only exports, vs. all libraries
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
protected 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
protected void getPackagesInterruptibly(java.lang.String packagePrefix,
                                        java.util.Collection<java.lang.String> out)
                                 throws java.lang.InterruptedException
BaseClassLocator
getPackagesInterruptibly in class BaseClassLocatorpackagePrefix - the package prefixout - the collection where packages are added
java.lang.InterruptedException - if the operation is interrupted
protected 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
protected void getClassesInPackageInterruptibly(java.lang.String packagePrefix,
                                                java.util.Collection<java.lang.String> out)
                                         throws java.lang.InterruptedException
BaseClassLocator
getClassesInPackageInterruptibly in class BaseClassLocatorpackagePrefix - the package prefixout - the collection where packages are added
java.lang.InterruptedException - if the operation is interrupted
protected void getAllClasses(java.util.Collection<java.lang.String> out,
                             ClassNameFilter filter)
getAllClasses in class BaseClassLocatorout - the collection to add the fully-qualified class namesfilter - the class name filter to use
protected 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
protected void getAllPackages(java.util.Collection<java.lang.String> out,
                              PackageNameFilter filter)
getAllPackages in class BaseClassLocatorout - the collection to add the full package namesfilter - the pckage name filter to use
protected void getAllPackagesInterruptibly(java.util.Collection<java.lang.String> out,
                                           PackageNameFilter filter)
                                    throws java.lang.InterruptedException
BaseClassLocator
getAllPackagesInterruptibly in class BaseClassLocatorout - the collection where package names are addedfilter - the package name filter to use
java.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation,
        i.e., java.util.List
public java.net.URL getURLInterruptibly(java.lang.String fqClassName)
                                 throws java.lang.InterruptedException
JavaClassLocator2
getURLInterruptibly in interface JavaClassLocator2getURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notation,
        i.e., java.util.List
java.lang.InterruptedException - if the operation is interrupted
public java.net.URL getProjectSourceURL(java.lang.String fqClassName,
                                        boolean includeDependencies)
fqClassName - the fully-qualified class name in dotted notationincludeDependencies - include the projects depended on by this
        current project
public java.net.URL getProjectSourceURLInterruptibly(java.lang.String fqClassName,
                                                     boolean includeDependencies)
                                              throws java.lang.InterruptedException
fqClassName - the fully-qualified class name in dotted notationincludeDependencies - include the projects depended on by this
        current project
java.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getNonProjectSourceURL(java.lang.String fqClassName)
public java.net.URL getNonProjectSourceURLInterruptibly(java.lang.String fqClassName)
                                                 throws java.lang.InterruptedException
java.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getSourceURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation
public java.net.URL getSourceURLInterruptibly(java.lang.String fqClassName)
                                       throws java.lang.InterruptedException
JavaClassLocator2
getSourceURLInterruptibly in interface JavaClassLocator2getSourceURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notation
java.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getClassURL(java.lang.String fqClassName)
fqClassName - the fully-qualified class name in dotted notation
public java.net.URL getClassURLInterruptibly(java.lang.String fqClassName)
                                      throws java.lang.InterruptedException
JavaClassLocator2
getClassURLInterruptibly in interface JavaClassLocator2getClassURLInterruptibly in class BaseClassLocatorfqClassName - the fully-qualified class name in dotted notation
java.lang.InterruptedException - if the operation is interruptedpublic java.net.URL getResourceURL(java.lang.String resourceName)
resourceName - the full name of the resource including any file
                     extensions
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.0) E13403-08  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||