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

E13403-02

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.
 BaseClassLocator getPathLocator(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.
 
Methods inherited from class oracle.jdeveloper.java.locator.ClassLocatorFactory
getClassLocator, getClassLocator, getInstance, getSourceLocator, getSourceLocator
 
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

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

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

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

E13403-02

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