public interface Extension
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSION_COPYRIGHT |
static java.lang.String |
EXTENSION_DESCRIPTION |
static java.lang.String |
EXTENSION_LABEL |
static java.lang.String |
EXTENSION_PROVIDER |
static java.lang.String |
EXTENSION_PROVIDER_TAG |
static java.lang.String |
EXTENSION_VERSION |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getExtensionClassLoader()
Returns the class loader created by the extension to load
classes and resources specified in the specification file.
|
java.lang.String |
getExtensionDetailAttribute(java.lang.String attribute)
Returns the value defined by the specification file of
the supplied attribute.
|
java.io.File |
getExtensionDirectory()
Returns the "home" directory for the extension.
|
java.io.File |
getExtensionFile()
Returns the file from which this extension was loaded.
|
ExtensionListener |
getExtensionListener()
Returns the extension listener for this extension.
|
java.lang.Object |
getResource(java.lang.String key,
Session session)
Attempts to look up the value of the supplied key in one of the resource bundles
listed in the extension.xml.
|
static final java.lang.String EXTENSION_LABEL
static final java.lang.String EXTENSION_VERSION
static final java.lang.String EXTENSION_PROVIDER
static final java.lang.String EXTENSION_PROVIDER_TAG
static final java.lang.String EXTENSION_COPYRIGHT
static final java.lang.String EXTENSION_DESCRIPTION
java.io.File getExtensionFile()
getExtensionDirectory()
java.io.File getExtensionDirectory()
getExtensionFile().getParentFile()
.getExtensionFile()
java.lang.String getExtensionDetailAttribute(java.lang.String attribute)
null
java.lang.ClassLoader getExtensionClassLoader()
java.lang.Object getResource(java.lang.String key, Session session)
key
- the lookup keysession
- the sessionnull
if the resource cannot be foundExtensionListener getExtensionListener()
Copyright © 2014 Integral Solutions Ltd. All Rights Reserved.