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

E13403-05

oracle.jdeveloper.java.locator
Class JdevClassLocatorFactory

java.lang.Object
  extended by oracle.jdeveloper.java.locator.ClassLocatorFactory
      extended by oracle.jdeveloper.java.locator.JdevClassLocatorFactory

public class JdevClassLocatorFactory
extends ClassLocatorFactory

The ClassLocatorFactory is a factory for fetching BaseClassLocator instances. It provides a cache for these instances to allow sharing between clients.


Constructor Summary
JdevClassLocatorFactory()
           
 
Method Summary
static BaseClassLocator getLibraryLocator(Library library)
          Fetch a BaseClassLocator instance for the given library for locating source and class files.
static BaseClassLocator getLibraryLocator(Library[] libraries)
          Fetch a BaseClassLocator instance for the given set of libraries for locating source and class files.
static BaseClassLocator getLibraryLocatorInterruptibly(Library[] libraries)
          Fetch a BaseClassLocator instance for the given set of libraries for locating source and class files.
 BaseClassLocator getPathLocator(URLPath sourcePath, URLPath classPath)
          Fetch a BaseClassLocator instance for the given source and class paths for locating source and class files.
 BaseClassLocator getPathLocatorInterruptibly(URLPath sourcePath, URLPath classPath)
          Fetch a BaseClassLocator instance for the given source and class paths for locating source and class files.
static BaseClassLocator getProjectLocator(Project project)
          Fetch a BaseClassLocator instance for the given project for locating source and class files.
static BaseClassLocator getProjectLocatorInterruptibly(Project project)
          Get the class locator instance for a project.
 
Methods inherited from class oracle.jdeveloper.java.locator.ClassLocatorFactory
getClassLocator, getClassLocator, getClassLocatorInterruptibly, getInstance, getSourceLocator, getSourceLocator, getSourceLocatorInterruptibly
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdevClassLocatorFactory

public JdevClassLocatorFactory()
Method Detail

getLibraryLocator

public static BaseClassLocator getLibraryLocator(Library library)
Fetch a BaseClassLocator instance for the given library for locating source and class files. This does not currently track changes to the Library definition. Returns null if the library is null.

Parameters:
library - the library to create a class locator for
Returns:
the class locator for the given library for locating Java source and class files

getLibraryLocator

public static BaseClassLocator getLibraryLocator(Library[] libraries)
Fetch a BaseClassLocator instance for the given set of libraries for locating source and class files. This does not currently track changes to the Library definitions. Returns null if the provided libraries is null.

Parameters:
libraries - the libraries to create a class locator for
Returns:
the class locator for the given libraries for locating Java source and class files

getLibraryLocatorInterruptibly

public static BaseClassLocator getLibraryLocatorInterruptibly(Library[] libraries)
                                                       throws java.lang.InterruptedException
Fetch a BaseClassLocator instance for the given set of libraries for locating source and class files. This does not currently track changes to the Library definitions. Returns null if the provided libraries is null.

Parameters:
libraries - the libraries to create a class locator for
Returns:
the class locator for the given libraries for locating Java source and class files
Throws:
java.lang.InterruptedException - if the calling thread is interrupted while creating the class locator

getProjectLocator

public static BaseClassLocator getProjectLocator(Project project)
Fetch a BaseClassLocator instance for the given project for locating source and class files. This does not currently track changes to the Project settings. Returns null if the project is null.

Parameters:
project - the project to create a class locator for
Returns:
the class locator for the given project for locating Java source and class files

getProjectLocatorInterruptibly

public static BaseClassLocator getProjectLocatorInterruptibly(Project project)
                                                       throws java.lang.InterruptedException
Get the class locator instance for a project.

Parameters:
project - the project
Returns:
the class locator for the project
Throws:
java.lang.InterruptedException - if the calling thread is interrupted while creating the class locator

getPathLocator

public BaseClassLocator getPathLocator(URLPath sourcePath,
                                       URLPath classPath)
Fetch a BaseClassLocator instance for the given source and class paths for locating source and class files. This does not currently track changes to the URLPaths provided. Returns null if both specified paths are null.

Overrides:
getPathLocator in class ClassLocatorFactory
Returns:
the class locator for the given project for locating Java source and class files

getPathLocatorInterruptibly

public BaseClassLocator getPathLocatorInterruptibly(URLPath sourcePath,
                                                    URLPath classPath)
                                             throws java.lang.InterruptedException
Description copied from class: ClassLocatorFactory
Fetch a BaseClassLocator instance for the given source and class paths for locating source and class files. This does not currently track changes to the URLPaths provided. Returns null if both specified paths are null.

Overrides:
getPathLocatorInterruptibly in class ClassLocatorFactory
Returns:
the class locator for the given project for locating Java source and class files
Throws:
java.lang.InterruptedException

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

E13403-05

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