com.atlassian.confluence.plugin.dev
Class AlternativeDirectoryResourceLoaderSupportingStaticPlugin

java.lang.Object
  extended by com.atlassian.plugin.impl.AbstractPlugin
      extended by com.atlassian.plugin.impl.StaticPlugin
          extended by com.atlassian.confluence.plugin.dev.AlternativeDirectoryResourceLoaderSupportingStaticPlugin
All Implemented Interfaces:
com.atlassian.plugin.Plugin, com.atlassian.plugin.Resourced, java.lang.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, SingleDownloadableResourceBuilder, AlternativeDirectoryResourceLoader

Field Summary
 
Fields inherited from interface com.atlassian.plugin.Plugin
NAME_COMPARATOR, VERSION_1, VERSION_2, VERSION_3
 
Constructor Summary
AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
           
 
Method Summary
 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)
           
 
Methods inherited from class com.atlassian.plugin.impl.StaticPlugin
isDeleteable, isDynamicallyLoaded, isUninstallable, loadClass, uninstallInternal
 
Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin
addModuleDescriptor, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlternativeDirectoryResourceLoaderSupportingStaticPlugin

public AlternativeDirectoryResourceLoaderSupportingStaticPlugin()
Method Detail

getClassLoader

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

getResource

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

getResourceAsStream

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

getModuleDescriptors

public java.util.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> java.util.List<com.atlassian.plugin.ModuleDescriptor<T>> getModuleDescriptorsByModuleClass(java.lang.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(java.lang.String key)
Specified by:
getModuleDescriptor in interface com.atlassian.plugin.Plugin
Overrides:
getModuleDescriptor in class com.atlassian.plugin.impl.AbstractPlugin


Copyright © 2003-2014 Atlassian. All Rights Reserved.