public class

MockPluginAccessor

extends Object
implements PluginAccessor
java.lang.Object
   ↳ com.atlassian.jira.mock.plugin.MockPluginAccessor

Summary

Public Constructors
MockPluginAccessor()
Public Methods
MockPluginAccessor addPlugin(Plugin plugin)
MockPluginAccessor addPlugins(Plugin... plugins)
ClassLoader getClassLoader()
Iterable<ModuleDescriptor<?>> getDynamicModules(Plugin plugin)
Class<?> getDynamicPluginClass(String className)
InputStream getDynamicResourceAsStream(String resourcePath)
<D extends ModuleDescriptor<?>> List<D> getEnabledModuleDescriptorsByClass(Class<D> descriptorClazz)
<D extends ModuleDescriptor<?>> List<D> getEnabledModuleDescriptorsByClass(Class<D> descriptorClazz, boolean verbose)
<M> List<ModuleDescriptor<M>> getEnabledModuleDescriptorsByType(String type)
<M> List<M> getEnabledModulesByClass(Class<M> moduleClass)
<M> List<M> getEnabledModulesByClassAndDescriptor(Class[]<ModuleDescriptor<M>> descriptorClazz, Class<M> moduleClass)
<M> List<M> getEnabledModulesByClassAndDescriptor(Class<ModuleDescriptor<M>> moduleDescriptorClass, Class<M> moduleClass)
Plugin getEnabledPlugin(String pluginKey)
ModuleDescriptor<?> getEnabledPluginModule(String completeKey)
Collection<Plugin> getEnabledPlugins()
<M> Collection<ModuleDescriptor<M>> getModuleDescriptors(ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
<M> Collection<M> getModules(ModuleDescriptorPredicate<M> moduleDescriptorPredicate)
Plugin getPlugin(String key)
ModuleDescriptor<?> getPluginModule(String completeKey)
InputStream getPluginResourceAsStream(String pluginKey, String resourcePath)
PluginRestartState getPluginRestartState(String key)
Collection<Plugin> getPlugins(PluginPredicate pluginPredicate)
Collection<Plugin> getPlugins()
boolean isPluginEnabled(String key)
boolean isPluginModuleEnabled(String completeKey)
boolean isSystemPlugin(String key)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.plugin.PluginAccessor

Public Constructors

public MockPluginAccessor ()

Public Methods

public MockPluginAccessor addPlugin (Plugin plugin)

public MockPluginAccessor addPlugins (Plugin... plugins)

public ClassLoader getClassLoader ()

public Iterable<ModuleDescriptor<?>> getDynamicModules (Plugin plugin)

public Class<?> getDynamicPluginClass (String className)

public InputStream getDynamicResourceAsStream (String resourcePath)

public List<D> getEnabledModuleDescriptorsByClass (Class<D> descriptorClazz)

public List<D> getEnabledModuleDescriptorsByClass (Class<D> descriptorClazz, boolean verbose)

public List<ModuleDescriptor<M>> getEnabledModuleDescriptorsByType (String type)

public List<M> getEnabledModulesByClass (Class<M> moduleClass)

public List<M> getEnabledModulesByClassAndDescriptor (Class[]<ModuleDescriptor<M>> descriptorClazz, Class<M> moduleClass)

public List<M> getEnabledModulesByClassAndDescriptor (Class<ModuleDescriptor<M>> moduleDescriptorClass, Class<M> moduleClass)

public Plugin getEnabledPlugin (String pluginKey)

public ModuleDescriptor<?> getEnabledPluginModule (String completeKey)

public Collection<Plugin> getEnabledPlugins ()

public Collection<ModuleDescriptor<M>> getModuleDescriptors (ModuleDescriptorPredicate<M> moduleDescriptorPredicate)

public Collection<M> getModules (ModuleDescriptorPredicate<M> moduleDescriptorPredicate)

public Plugin getPlugin (String key)

public ModuleDescriptor<?> getPluginModule (String completeKey)

public InputStream getPluginResourceAsStream (String pluginKey, String resourcePath)

public PluginRestartState getPluginRestartState (String key)

public Collection<Plugin> getPlugins (PluginPredicate pluginPredicate)

public Collection<Plugin> getPlugins ()

public boolean isPluginEnabled (String key)

public boolean isPluginModuleEnabled (String completeKey)

public boolean isSystemPlugin (String key)