public class AlternativeDirectoryResourceLoaderSupportingStaticPlugin
extends com.atlassian.plugin.impl.StaticPlugin
AlternativeDirectoryResourceLoader
for StaticPlugin
s.
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, uninstallInternal
addDynamicModuleDescriptor, 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, uninstall
public AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
public ClassLoader getClassLoader()
getClassLoader
in interface com.atlassian.plugin.Plugin
getClassLoader
in class com.atlassian.plugin.impl.StaticPlugin
public URL getResource(String name)
getResource
in interface com.atlassian.plugin.Plugin
getResource
in class com.atlassian.plugin.impl.StaticPlugin
public InputStream getResourceAsStream(String name)
getResourceAsStream
in interface com.atlassian.plugin.Plugin
getResourceAsStream
in class com.atlassian.plugin.impl.StaticPlugin
public Collection<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptors()
getModuleDescriptors
in interface com.atlassian.plugin.Plugin
getModuleDescriptors
in class com.atlassian.plugin.impl.AbstractPlugin
public <T> List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(Class<T> aClass)
getModuleDescriptorsByModuleClass
in interface com.atlassian.plugin.Plugin
getModuleDescriptorsByModuleClass
in class com.atlassian.plugin.impl.AbstractPlugin
public com.atlassian.plugin.ModuleDescriptor<?> getModuleDescriptor(String key)
getModuleDescriptor
in interface com.atlassian.plugin.Plugin
getModuleDescriptor
in class com.atlassian.plugin.impl.AbstractPlugin
Copyright © 2003–2017 Atlassian. All rights reserved.