Class AlternativeDirectoryResourceLoaderSupportingStaticPlugin
- java.lang.Object
-
- com.atlassian.plugin.impl.AbstractPlugin
-
- com.atlassian.plugin.impl.StaticPlugin
-
- com.atlassian.confluence.plugin.dev.AlternativeDirectoryResourceLoaderSupportingStaticPlugin
-
- All Implemented Interfaces:
com.atlassian.plugin.Plugin
,com.atlassian.plugin.PluginInternal
,com.atlassian.plugin.Resourced
,com.atlassian.plugin.ScopeAware
,Comparable<com.atlassian.plugin.Plugin>
public class AlternativeDirectoryResourceLoaderSupportingStaticPlugin extends com.atlassian.plugin.impl.StaticPlugin
Supports theAlternativeDirectoryResourceLoader
forStaticPlugin
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.
- See Also:
SinglePluginLoader
,AlternativeDirectoryResourceLoader
-
-
Constructor Summary
Constructors Constructor Description AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class com.atlassian.plugin.impl.StaticPlugin
isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass, uninstallInternal
-
Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin
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, getResourceLocation, getScopeKey, hasAllPermissions, install, installInternal, isBundledPlugin, isEnabledByDefault, isSystemPlugin, removeDynamicModuleDescriptor, removeModuleDescriptor, resolve, setBundledPlugin, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginState, setPluginsVersion, setResources, setSystemPlugin, toString, uninstall
-
-
-
-
Method Detail
-
getClassLoader
public ClassLoader getClassLoader()
- Specified by:
getClassLoader
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getClassLoader
in classcom.atlassian.plugin.impl.StaticPlugin
-
getResource
public URL getResource(String name)
- Specified by:
getResource
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getResource
in classcom.atlassian.plugin.impl.StaticPlugin
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
- Specified by:
getResourceAsStream
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getResourceAsStream
in classcom.atlassian.plugin.impl.StaticPlugin
-
getModuleDescriptors
public Collection<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptors()
- Specified by:
getModuleDescriptors
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getModuleDescriptors
in classcom.atlassian.plugin.impl.AbstractPlugin
-
getModuleDescriptorsByModuleClass
public <T> List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(Class<T> aClass)
- Specified by:
getModuleDescriptorsByModuleClass
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getModuleDescriptorsByModuleClass
in classcom.atlassian.plugin.impl.AbstractPlugin
-
getModuleDescriptor
public com.atlassian.plugin.ModuleDescriptor<?> getModuleDescriptor(String key)
- Specified by:
getModuleDescriptor
in interfacecom.atlassian.plugin.Plugin
- Overrides:
getModuleDescriptor
in classcom.atlassian.plugin.impl.AbstractPlugin
-
-