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:
  • SinglePluginLoader
  • AlternativeDirectoryResourceLoader
  • Field Summary

    Fields inherited from class com.atlassian.plugin.impl.AbstractPlugin

    pluginArtifact

    Fields inherited from interface com.atlassian.plugin.Plugin

    VERSION_1, VERSION_2, VERSION_3
  • Constructor Summary

    Constructors
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.atlassian.plugin.ModuleDescriptor<?>
     
    Collection<com.atlassian.plugin.ModuleDescriptor<?>>
     
    <T> List<com.atlassian.plugin.ModuleDescriptor<T>>
     
     
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • AlternativeDirectoryResourceLoaderSupportingStaticPlugin

      public AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
  • Method Details

    • getClassLoader

      public ClassLoader getClassLoader()
      Specified by:
      getClassLoader in interface com.atlassian.plugin.Plugin
      Overrides:
      getClassLoader in class com.atlassian.plugin.impl.StaticPlugin
    • getResource

      public URL getResource(String name)
      Specified by:
      getResource in interface com.atlassian.plugin.Plugin
      Overrides:
      getResource in class com.atlassian.plugin.impl.StaticPlugin
    • getResourceAsStream

      public InputStream getResourceAsStream(String name)
      Specified by:
      getResourceAsStream in interface com.atlassian.plugin.Plugin
      Overrides:
      getResourceAsStream in class com.atlassian.plugin.impl.StaticPlugin
    • getModuleDescriptors

      public Collection<com.atlassian.plugin.ModuleDescriptor<?>> getModuleDescriptors()
      Specified by:
      getModuleDescriptors in interface com.atlassian.plugin.Plugin
      Overrides:
      getModuleDescriptors in class com.atlassian.plugin.impl.AbstractPlugin
    • getModuleDescriptorsByModuleClass

      public <T> List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(Class<T> aClass)
      Specified by:
      getModuleDescriptorsByModuleClass in interface com.atlassian.plugin.Plugin
      Overrides:
      getModuleDescriptorsByModuleClass in class com.atlassian.plugin.impl.AbstractPlugin
    • getModuleDescriptor

      public com.atlassian.plugin.ModuleDescriptor<?> getModuleDescriptor(String key)
      Specified by:
      getModuleDescriptor in interface com.atlassian.plugin.Plugin
      Overrides:
      getModuleDescriptor in class com.atlassian.plugin.impl.AbstractPlugin