|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
javax.ide.extension.ElementVisitor
javax.ide.extension.ExtensionHook
public abstract class ExtensionHook
An extension hook is responsible for processing information from the extension manifest for a particular feature and making this information available to the service responsible for managing the functionality provided by the hook.
Field Summary | |
---|---|
static java.lang.String |
KEY_EXTENSION |
static java.lang.String |
KEY_RSBUNDLE_CLASS |
static java.lang.String |
MANIFEST_XMLNS The XML namespace for a JSR-198 extension manifest. |
Fields inherited from class javax.ide.extension.ElementVisitor |
---|
KEY_LOCATOR |
Constructor Summary | |
---|---|
ExtensionHook() |
Method Summary | |
---|---|
protected java.net.URI |
findPath(ElementContext context, java.lang.String path) Resolves a path in the manifest, searching all dependencies of the current extension in context until a path to an existing resource is found. |
protected Extension |
getExtension(ElementContext context) Get the extension that is currently being processed. |
java.lang.String |
getProvider() Get the id of the extension that registered this hook. |
protected java.lang.String |
getRSBundleClass(ElementContext context) Get the resource bundle class name. |
java.lang.String |
getSchemaLocation() Get the location of the schema for this hook. |
protected java.net.URI |
resolvePath(ElementContext context, java.lang.String path) Resolves a path in the manifest. |
void |
setProvider(java.lang.String extensionId) Set the id of the extension that registered this hook. |
void |
setSchemaLocation(java.lang.String schemaLocation) Set the location of the schema for this hook. |
Methods inherited from class javax.ide.extension.ElementVisitor |
---|
end, getClassLoader, getResourceBundle, log, start |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_EXTENSION
public static final java.lang.String KEY_RSBUNDLE_CLASS
public static final java.lang.String MANIFEST_XMLNS
Constructor Detail |
---|
public ExtensionHook()
Method Detail |
---|
public final void setProvider(java.lang.String extensionId)
extensionId
- the id of the extension that registered this hook. Must not be null.public final java.lang.String getProvider()
public final void setSchemaLocation(java.lang.String schemaLocation)
schemaLocation
- the schema location.public final java.lang.String getSchemaLocation()
protected final java.lang.String getRSBundleClass(ElementContext context)
context
- the current context.protected final Extension getExtension(ElementContext context)
context
- the current context.protected final java.net.URI resolvePath(ElementContext context, java.lang.String path)
context
- the xml processing context.path
- a path to resolve. Must not be null.protected final java.net.URI findPath(ElementContext context, java.lang.String path)
This method is significantly more expensive than resolvePath( ElementContext, String)
, because it must perform file system exists() checks.
context
- the xml processing context.path
- the path to resolve. Must not be null.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |