public class AlternativeDirectoryResourceLoaderSupportingStaticPlugin
extends com.atlassian.plugin.impl.StaticPlugin
AlternativeDirectoryResourceLoader for StaticPlugins.
StaticPlugins are assumed to be defined by the webapp ClassLoader (CL). This class will decorate the plugin's CL to use ask the AlternativeDirectoryResourceLoader first for resources.
SinglePluginLoader,
AlternativeDirectoryResourceLoader| Constructor and Description |
|---|
AlternativeDirectoryResourceLoaderSupportingStaticPlugin() |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader() |
com.atlassian.plugin.ModuleDescriptor<?> |
getModuleDescriptor(String key) |
Collection<com.atlassian.plugin.ModuleDescriptor<?>> |
getModuleDescriptors() |
<T> List<com.atlassian.plugin.ModuleDescriptor<T>> |
getModuleDescriptorsByModuleClass(Class<T> aClass) |
URL |
getResource(String name) |
InputStream |
getResourceAsStream(String name) |
isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass, uninstallInternaladdDynamicModuleDescriptor, addModuleDescriptor, cleanVersionString, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getDynamicModuleDescriptors, getI18nNameKey, getInstallationMode, getKey, getLog, getName, getPluginArtifact, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, getScopeKey, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, removeDynamicModuleDescriptor, removeModuleDescriptor, resolve, setBundledPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstallpublic AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
public ClassLoader getClassLoader()
getClassLoader in interface com.atlassian.plugin.PlugingetClassLoader in class com.atlassian.plugin.impl.StaticPluginpublic URL getResource(String name)
getResource in interface com.atlassian.plugin.PlugingetResource in class com.atlassian.plugin.impl.StaticPluginpublic InputStream getResourceAsStream(String name)
getResourceAsStream in interface com.atlassian.plugin.PlugingetResourceAsStream in class com.atlassian.plugin.impl.StaticPluginpublic Collection<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptors()
getModuleDescriptors in interface com.atlassian.plugin.PlugingetModuleDescriptors in class com.atlassian.plugin.impl.AbstractPluginpublic <T> List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(Class<T> aClass)
getModuleDescriptorsByModuleClass in interface com.atlassian.plugin.PlugingetModuleDescriptorsByModuleClass in class com.atlassian.plugin.impl.AbstractPluginpublic com.atlassian.plugin.ModuleDescriptor<?> getModuleDescriptor(String key)
getModuleDescriptor in interface com.atlassian.plugin.PlugingetModuleDescriptor in class com.atlassian.plugin.impl.AbstractPluginCopyright © 2003–2017 Atlassian. All rights reserved.