|
||||||||||
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.impl.StaticPlugin
public class StaticPlugin
Field Summary |
---|
Fields inherited from interface com.atlassian.plugin.Plugin |
---|
NAME_COMPARATOR |
Constructor Summary | |
---|---|
StaticPlugin()
|
Method Summary | ||
---|---|---|
java.lang.ClassLoader |
getClassLoader()
Get the classloader for the plugin. |
|
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()
Static plugins loaded from the classpath can't 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 |
Constructor Detail |
---|
public StaticPlugin()
Method Detail |
---|
public boolean isUninstallable()
true
if this plugin can be 'uninstalled'.public <T> java.lang.Class<T> loadClass(java.lang.String clazz, java.lang.Class<?> callingClass) throws java.lang.ClassNotFoundException
Plugin
clazz
- 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.lang.ClassLoader getClassLoader()
Plugin
public java.net.URL getResource(java.lang.String name)
Plugin
name
- the name of the resource to be loaded
public java.io.InputStream getResourceAsStream(java.lang.String name)
Plugin
name
- The name of the resource to be loaded.
public boolean isDynamicallyLoaded()
Plugin
true
if this plugin is loaded dynamically at runtime.public boolean isDeleteable()
Plugin
true
if this plugin file should be deleted on unistall.protected void uninstallInternal()
AbstractPlugin
PluginException
.
uninstallInternal
in class AbstractPlugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |