Extension SDK 10.1.3.36.73

javax.ide.extension
Class ExtensionHook

java.lang.Object
  extended byjavax.ide.extension.ElementVisitor
      extended byjavax.ide.extension.ExtensionHook
Direct Known Subclasses:
DynamicHook, IdeHook, JspLibrariesHandler, UIEditorHookHandler

public abstract class ExtensionHook
extends ElementVisitor

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  Extension getExtension(ElementContext context)
          Get the extension that is currently being processed.
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)
          Resolve a path in the manifest.
 void setSchemaLocation(java.lang.String schemaLocation)
          Set the location of the schema for this hook.
 
Methods inherited from class javax.ide.extension.ElementVisitor
end, log, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_EXTENSION

public static final java.lang.String KEY_EXTENSION
See Also:
Constant Field Values

KEY_RSBUNDLE_CLASS

public static final java.lang.String KEY_RSBUNDLE_CLASS
See Also:
Constant Field Values

MANIFEST_XMLNS

public static final java.lang.String MANIFEST_XMLNS
The XML namespace for a JSR-198 extension manifest.

See Also:
Constant Field Values
Constructor Detail

ExtensionHook

public ExtensionHook()
Method Detail

setSchemaLocation

public final void setSchemaLocation(java.lang.String schemaLocation)
Set the location of the schema for this hook. This method is called by the extension registry when processing hooks.

Parameters:
schemaLocation - the schema location.

getSchemaLocation

public final java.lang.String getSchemaLocation()
Get the location of the schema for this hook.

Returns:
the location of the schema for this hook.

getRSBundleClass

protected final java.lang.String getRSBundleClass(ElementContext context)
Get the resource bundle class name.

Parameters:
context - the current context.
Returns:
the fully qualified class name of the resource bundle for the current context.

getExtension

protected final Extension getExtension(ElementContext context)
Get the extension that is currently being processed.

Parameters:
context - the current context.
Returns:
the extension being processed.

resolvePath

protected final java.net.URI resolvePath(ElementContext context,
                                         java.lang.String path)
Resolve a path in the manifest. Paths depend on the source of the extension being processed. For JAR files, if the path starts with a forward slash (/), it is a path inside the JAR file. Otherwise, it is a path relative to the physical location of the JAR file.

Parameters:
context - the xml processing context.
path - a path to resolve. Must not be null.
Returns:
the absolute path a resource. This may or may not exist.

Extension SDK 10.1.3.36.73

 

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