|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.ide.Service
javax.ide.extension.ExtensionRegistry
oracle.ide.ExtensionRegistry
The extension registry provides access to information about extensions loaded from JSR-198 extension manifests during initialization of the IDE.
Normally, it is not necessary to use this class directly. Instead, the javax.ide.extension.ExtensionRegistry class provides an API for getting extension information that will work across all JSR-198 IDEs.
This registry implementation provides information about extensions that is
specific to JDeveloper.
Obtain an instance of the extension registry like this:
import javax.ide.extension.ExtensionRegistry;
ExtensionRegistry registry = ExtensionRegistry.getExtensionRegistry();
If the JDeveloper specific extension registry is required, you can either
cast the returned instance like so:
import javax.ide.extension.ExtensionRegistry;
oracle.ide.ExtensionRegistry jdevRegistry = (oracle.ide.ExtensionRegistry)
ExtensionRegistry.getExtensionRegistry();
or alternatively, use the convenience getOracleRegistry() method:
import oracle.ide.ExtensionRegistry;
ExtensionRegistry registry = ExtensionRegistry.getOracleRegistry();
| Field Summary | |
protected java.util.logging.Logger |
_manifestLogger
|
protected static java.lang.String |
EXTENSIONS_DIR
The name of the extensions directory. |
| Constructor Summary | |
ExtensionRegistry()
|
|
| Method Summary | |
abstract Extension |
findExtensionEvenIfNotLoaded(java.lang.String id)
Get an extension by its id even if the extension is not loaded. |
abstract java.util.Collection |
getAllExtensions()
Get all available extensions, whether or not they are currently loaded. |
java.lang.String |
getExtensionJAR(java.lang.String extensionId,
Version version)
Get the JAR file for the specified extension. |
IdeHook |
getIdeHook(ElementName elementName)
Get an IDE hook by its element name. |
java.lang.String |
getInstallDirectory(java.lang.String extensionId)
Get the install directory for an extension. |
java.lang.String |
getInstallDirectory(java.lang.String extensionId,
Version version)
Get the install directory for an extension. |
java.net.URI |
getInstallRoot(Extension extension)
Get the install root of the specified extension. |
java.util.logging.Logger |
getLogger()
Get the logger that should be used to log messages of interest to extension developers. |
java.util.logging.Logger |
getManifestLogger()
Get the logger used to report problems in the extension manifest. |
static ExtensionRegistry |
getOracleRegistry()
Get the Oracle implementation of the JSR-198 extension registry. |
abstract java.net.URL |
getSystemDirectory(java.lang.String extensionId)
Get the system directory for the specified extension. |
abstract java.net.URL |
getSystemDirectory(java.lang.String extensionId,
Version version)
Get the system directory for the specified extension. |
abstract boolean |
isLoaded(java.lang.String extensionId)
Gets whether a specified extension is loaded. |
abstract boolean |
isNewlyInstalled(java.lang.String extensionId)
Gets whether the specified extension is newly installed. |
abstract boolean |
isUserExtension(java.lang.String extensionId)
Gets whether a specified extension is located in the user specific extensions directory. |
protected void |
registerIdeHook(ElementName elementName,
IdeHook hook)
Register an ide hook. |
| Methods inherited from class javax.ide.extension.ExtensionRegistry |
addToClassPath, createExtensionLogger, createExtensionVisitor, createHookVisitorFactory, createInitialContext, cycleEncountered, findAllExtensionSources, findExtension, getExtensionRegistry, getExtensions, getHook, initialize, isExtensionEnabled, loadExtension, loadExtensions, loadExtensions, unsatisfiedExtensionDependencies |
| Methods inherited from class javax.ide.Service |
getService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String EXTENSIONS_DIR
protected java.util.logging.Logger _manifestLogger
| Constructor Detail |
public ExtensionRegistry()
| Method Detail |
public static final ExtensionRegistry getOracleRegistry()
(ExtensionRegistry) javax.ide.extensionExtensionRegistry.getExtensionRegistry()
public final java.util.logging.Logger getLogger()
public final java.util.logging.Logger getManifestLogger()
public abstract boolean isLoaded(java.lang.String extensionId)
extensionId - the id of an extension. Must not be null.
public abstract boolean isUserExtension(java.lang.String extensionId)
extensionId - the id of an extension. Must not be null.
public abstract boolean isNewlyInstalled(java.lang.String extensionId)
extensionId - the id of an extension
public abstract java.net.URL getSystemDirectory(java.lang.String extensionId)
extensionId - the id of an extension. Must not be null.
public abstract java.net.URL getSystemDirectory(java.lang.String extensionId,
Version version)
This version of the method will work even if the extension has not yet been loaded.
extensionId - the id of the extension. Must not be null.version - the version of the extension. Must not be null.
public final java.net.URI getInstallRoot(Extension extension)
This method is provided for compatibility with JSR-198 and does the
same thing as getInstallDirectory(String).
getInstallRoot in class ExtensionRegistryextension - an extension to get the install root for. Must not be
null.
public final java.lang.String getInstallDirectory(java.lang.String extensionId)
extensionId - the id of an installed extension. Must not be null.
public final java.lang.String getInstallDirectory(java.lang.String extensionId,
Version version)
extensionId - the id of an installed extension. Must not be null.version - the version of the extension. May be null, in which case
the currently loaded version of the extension is used.
public java.lang.String getExtensionJAR(java.lang.String extensionId,
Version version)
extensionId - the id of the extension to find.version - the version of the extension. If null, the currently
loaded version of the extension is used.
public IdeHook getIdeHook(ElementName elementName)
elementName - the name of an Oracle IDE specific manifest element.
Must not be null.
protected final void registerIdeHook(ElementName elementName,
IdeHook hook)
elementName - the element name to register this ide hook for.hook - the hook.public abstract java.util.Collection getAllExtensions()
isLoaded(String) to determine whether a given extension id
is loaded.
public abstract Extension findExtensionEvenIfNotLoaded(java.lang.String id)
id - the id of any extension returned by getAllExtensions().
|
Extension SDK 10.1.3.36.73 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Copyright © 1997, 2005, Oracle.All rights reserved.