Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.extension
Class ExtensionHook  view ExtensionHook download ExtensionHook.java

java.lang.Object
  extended byjavax.ide.extension.ElementVisitor
      extended byjavax.ide.extension.ExtensionHook
Direct Known Subclasses:
DynamicHook

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)
           
protected  java.net.URI resolvePath(ElementContext context, java.lang.String path)
          Resolve a path in the manifest.
 
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

getRSBundleClass

protected final java.lang.String getRSBundleClass(ElementContext context)

getExtension

protected final Extension getExtension(ElementContext context)
Get the extension that is currently 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.