com.atlassian.bamboo.mock.plugins
Class MockPlugin

java.lang.Object
  extended by com.atlassian.plugin.impl.AbstractPlugin
      extended by com.atlassian.bamboo.mock.plugins.MockPlugin
All Implemented Interfaces:
com.atlassian.plugin.Plugin, com.atlassian.plugin.Plugin.EnabledMetricsSource, com.atlassian.plugin.Resourced, Comparable<com.atlassian.plugin.Plugin>

public class MockPlugin
extends com.atlassian.plugin.impl.AbstractPlugin

Mock Plugin.

Since:
v3.3

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.plugin.Plugin
com.atlassian.plugin.Plugin.EnabledMetricsSource, com.atlassian.plugin.Plugin.Resolvable
 
Nested classes/interfaces inherited from interface com.atlassian.plugin.Plugin.EnabledMetricsSource
com.atlassian.plugin.Plugin.EnabledMetricsSource.Default
 
Field Summary
 
Fields inherited from interface com.atlassian.plugin.Plugin
NAME_COMPARATOR, VERSION_1, VERSION_2, VERSION_3
 
Constructor Summary
MockPlugin(String key)
           
MockPlugin(String key, ClassLoader classLoader)
           
 
Method Summary
 ClassLoader getClassLoader()
           
 URL getResource(String path)
           
 InputStream getResourceAsStream(String name)
           
 boolean isDeleteable()
           
 boolean isDynamicallyLoaded()
           
 boolean isUninstallable()
           
<T> Class<T>
loadClass(String clazz, Class<?> callingClass)
           
 
Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin
addModuleDescriptor, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, 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, uninstallInternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockPlugin

public MockPlugin(String key)

MockPlugin

public MockPlugin(String key,
                  ClassLoader classLoader)
Method Detail

isUninstallable

public boolean isUninstallable()

isDeleteable

public boolean isDeleteable()

isDynamicallyLoaded

public boolean isDynamicallyLoaded()

loadClass

public <T> Class<T> loadClass(String clazz,
                              Class<?> callingClass)
                   throws ClassNotFoundException
Throws:
ClassNotFoundException

getClassLoader

public ClassLoader getClassLoader()

getResource

public URL getResource(String path)

getResourceAsStream

public InputStream getResourceAsStream(String name)


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.