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 the
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.
- See Also:
-
SinglePluginLoaderAlternativeDirectoryResourceLoader
-
Field Summary
Fields inherited from class com.atlassian.plugin.impl.AbstractPlugin
pluginArtifactFields inherited from interface com.atlassian.plugin.Plugin
VERSION_1, VERSION_2, VERSION_3 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.atlassian.plugin.ModuleDescriptor<?>Collection<com.atlassian.plugin.ModuleDescriptor<?>><T> List<com.atlassian.plugin.ModuleDescriptor<T>>getModuleDescriptorsByModuleClass(Class<T> aClass) getResource(String name) getResourceAsStream(String name) Methods inherited from class com.atlassian.plugin.impl.StaticPlugin
isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass, uninstallInternalMethods 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
-
Constructor Details
-
AlternativeDirectoryResourceLoaderSupportingStaticPlugin
public AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
-
-
Method Details
-
getClassLoader
- Specified by:
getClassLoaderin interfacecom.atlassian.plugin.Plugin- Overrides:
getClassLoaderin classcom.atlassian.plugin.impl.StaticPlugin
-
getResource
- Specified by:
getResourcein interfacecom.atlassian.plugin.Plugin- Overrides:
getResourcein classcom.atlassian.plugin.impl.StaticPlugin
-
getResourceAsStream
- Specified by:
getResourceAsStreamin interfacecom.atlassian.plugin.Plugin- Overrides:
getResourceAsStreamin classcom.atlassian.plugin.impl.StaticPlugin
-
getModuleDescriptors
- Specified by:
getModuleDescriptorsin interfacecom.atlassian.plugin.Plugin- Overrides:
getModuleDescriptorsin classcom.atlassian.plugin.impl.AbstractPlugin
-
getModuleDescriptorsByModuleClass
public <T> List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(Class<T> aClass) - Specified by:
getModuleDescriptorsByModuleClassin interfacecom.atlassian.plugin.Plugin- Overrides:
getModuleDescriptorsByModuleClassin classcom.atlassian.plugin.impl.AbstractPlugin
-
getModuleDescriptor
- Specified by:
getModuleDescriptorin interfacecom.atlassian.plugin.Plugin- Overrides:
getModuleDescriptorin classcom.atlassian.plugin.impl.AbstractPlugin
-