|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.jdeveloper.java.JavaModelFactory
public class JavaModelFactory
Defines the interface for creating new environments and locator factories. The default factory creates base implementations. Subclasses should override to be create more complex implementations.
To plug in a new context or new locator factory, make a subclass of JavaModelFactory and then usesetInstance(oracle.jdeveloper.java.JavaModelFactory)
to
set the factory instance used to create new JavaModels.
Field Summary | |
---|---|
protected ClassLocatorFactory |
locatorFactory
The locator factory. |
Constructor Summary | |
---|---|
protected |
JavaModelFactory()
|
Method Summary | |
---|---|
static JavaModelFactory |
getInstance()
Gets the JavaModelFactory. |
ClassLocatorFactory |
getLocatorFactory()
Gets the factory we'll use to create new class locators with. |
ProviderContext |
newContext()
Creates a new context for the provider. |
protected ProviderContext |
newContextImpl()
Creates a new context for the provider. |
protected JavaModel |
newInstance(CachedFileProvider provider)
Creates a new JavaModel instance with the given provider. |
JavaModel |
newInstance(URLPath sourcepath,
URLPath classpath)
Creates a new JavaModel instance for the given arguments. |
protected ClassLocatorFactory |
newLocatorFactory()
Creates a new locator factory. |
static void |
setInstance(JavaModelFactory factory)
Sets the JavaModelFactory instance to use for creating new JavaModel instances. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ClassLocatorFactory locatorFactory
Constructor Detail |
---|
protected JavaModelFactory()
Method Detail |
---|
public static JavaModelFactory getInstance()
public static void setInstance(JavaModelFactory factory)
factory
- Must be non-null.public final JavaModel newInstance(URLPath sourcepath, URLPath classpath)
java.lang.IllegalArgumentException
- if both sourcepath and classpath are
null.protected JavaModel newInstance(CachedFileProvider provider)
public final ClassLocatorFactory getLocatorFactory()
protected ClassLocatorFactory newLocatorFactory()
public final ProviderContext newContext()
protected ProviderContext newContextImpl()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.6.0) E13403-07 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |