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
,
SingleDownloadableResourceBuilder
,
AlternativeDirectoryResourceLoader
Constructor and Description |
---|
AlternativeDirectoryResourceLoaderSupportingStaticPlugin() |
Modifier and Type | Method and Description |
---|---|
java.lang.ClassLoader |
getClassLoader() |
com.atlassian.plugin.ModuleDescriptor<?> |
getModuleDescriptor(java.lang.String key) |
java.util.Collection<com.atlassian.plugin.ModuleDescriptor<?>> |
getModuleDescriptors() |
<T> java.util.List<com.atlassian.plugin.ModuleDescriptor<T>> |
getModuleDescriptorsByModuleClass(java.lang.Class<T> aClass) |
java.net.URL |
getResource(java.lang.String name) |
java.io.InputStream |
getResourceAsStream(java.lang.String name) |
isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass, uninstallInternal
addModuleDescriptor, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getI18nNameKey, getInstallationMode, getKey, getLog, getName, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, removeModuleDescriptor, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstall
public AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
public java.lang.ClassLoader getClassLoader()
getClassLoader
in interface com.atlassian.plugin.Plugin
getClassLoader
in class com.atlassian.plugin.impl.StaticPlugin
public java.net.URL getResource(java.lang.String name)
getResource
in interface com.atlassian.plugin.Plugin
getResource
in class com.atlassian.plugin.impl.StaticPlugin
public java.io.InputStream getResourceAsStream(java.lang.String name)
getResourceAsStream
in interface com.atlassian.plugin.Plugin
getResourceAsStream
in class com.atlassian.plugin.impl.StaticPlugin
public java.util.Collection<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptors()
getModuleDescriptors
in interface com.atlassian.plugin.Plugin
getModuleDescriptors
in class com.atlassian.plugin.impl.AbstractPlugin
public <T> java.util.List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(java.lang.Class<T> aClass)
getModuleDescriptorsByModuleClass
in interface com.atlassian.plugin.Plugin
getModuleDescriptorsByModuleClass
in class com.atlassian.plugin.impl.AbstractPlugin
public com.atlassian.plugin.ModuleDescriptor<?> getModuleDescriptor(java.lang.String key)
getModuleDescriptor
in interface com.atlassian.plugin.Plugin
getModuleDescriptor
in class com.atlassian.plugin.impl.AbstractPlugin
Copyright © 2003-2014 Atlassian. All Rights Reserved.