|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.osgi.factory.OsgiBundlePlugin
public class OsgiBundlePlugin
Plugin that wraps an OSGi bundle that has no plugin descriptor.
| Field Summary |
|---|
| Fields inherited from interface com.atlassian.plugin.Plugin |
|---|
NAME_COMPARATOR |
| Constructor Summary | |
|---|---|
OsgiBundlePlugin(org.osgi.framework.Bundle bundle,
java.lang.String key,
PluginArtifact pluginArtifact,
PluginEventManager pluginEventManager)
|
|
| Method Summary | ||
|---|---|---|
protected void |
disableInternal()
Perform any internal disabling logic. |
|
protected PluginState |
enableInternal()
Perform any internal enabling logic. |
|
java.lang.ClassLoader |
getClassLoader()
Get the classloader for the plugin. |
|
java.util.Date |
getDateLoaded()
The date this plugin was loaded into the system. |
|
PluginArtifact |
getPluginArtifact()
|
|
java.net.URL |
getResource(java.lang.String name)
Retrieve the URL of the resource from the plugin. |
|
java.io.InputStream |
getResourceAsStream(java.lang.String name)
Load a given resource from the plugin. |
|
boolean |
isDeleteable()
Should the plugin file be deleted on unistall? |
|
boolean |
isDynamicallyLoaded()
Whether or not this plugin is loaded dynamically at runtime. |
|
boolean |
isUninstallable()
Whether or not this plugin can be 'uninstalled'. |
|
|
loadClass(java.lang.String clazz,
java.lang.Class<?> callingClass)
Get the plugin to load a specific class. |
|
protected void |
uninstallInternal()
Perform any internal uninstallation logic. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.atlassian.plugin.Plugin |
|---|
addModuleDescriptor, close, containsSystemModule, disable, enable, getI18nNameKey, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPermissions, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, install, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin, uninstall |
| Methods inherited from interface com.atlassian.plugin.Resourced |
|---|
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public OsgiBundlePlugin(org.osgi.framework.Bundle bundle,
java.lang.String key,
PluginArtifact pluginArtifact,
PluginEventManager pluginEventManager)
| Method Detail |
|---|
public java.util.Date getDateLoaded()
Plugin
getDateLoaded in interface PlugingetDateLoaded in class AbstractPluginpublic boolean isUninstallable()
Plugin
isUninstallable in interface Plugintrue if this plugin can be 'uninstalled'.public boolean isDeleteable()
Plugin
isDeleteable in interface Plugintrue if this plugin file should be deleted on unistall.public boolean isDynamicallyLoaded()
Plugin
isDynamicallyLoaded in interface Plugintrue if this plugin is loaded dynamically at runtime.
public <T> java.lang.Class<T> loadClass(java.lang.String clazz,
java.lang.Class<?> callingClass)
throws java.lang.ClassNotFoundException
Plugin
loadClass in interface Pluginclazz - The name of the class to be loadedcallingClass - The class calling the loading (used to help find a classloader)
java.lang.ClassNotFoundException - if the class cannot be located.public java.net.URL getResource(java.lang.String name)
Plugin
getResource in interface Pluginname - the name of the resource to be loaded
public java.io.InputStream getResourceAsStream(java.lang.String name)
Plugin
getResourceAsStream in interface Pluginname - The name of the resource to be loaded.
protected void uninstallInternal()
AbstractPluginPluginException.
uninstallInternal in class AbstractPluginprotected PluginState enableInternal()
AbstractPluginPluginException.
enableInternal in class AbstractPluginPluginState.ENABLED or
PluginState.ENABLINGprotected void disableInternal()
AbstractPluginPluginException.
disableInternal in class AbstractPluginpublic java.lang.ClassLoader getClassLoader()
Plugin
getClassLoader in interface Pluginpublic PluginArtifact getPluginArtifact()
getPluginArtifact in interface PluginArtifactBackedPluginPluginArtifact used to create this plugin instance. Cannot be null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||