Class MockPlugin
- java.lang.Object
-
- com.atlassian.plugin.impl.AbstractPlugin
-
- com.atlassian.bamboo.mock.plugins.MockPlugin
-
- 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 MockPlugin extends com.atlassian.plugin.impl.AbstractPlugin
MockPlugin
.- Since:
- v3.3
-
-
Constructor Summary
Constructors Constructor Description MockPlugin(String key)
MockPlugin(String key, ClassLoader classLoader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
addDynamicModuleDescriptor, addModuleDescriptor, cleanVersionString, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getActivePermissions, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getDynamicModuleDescriptors, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, 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, uninstallInternal
-
-
-
-
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()
-
getResourceAsStream
public InputStream getResourceAsStream(String name)
-
-