com.atlassian.plugin
Class MockPlugin
java.lang.Object
com.atlassian.plugin.impl.AbstractPlugin
com.atlassian.plugin.MockPlugin
- All Implemented Interfaces:
- Plugin, Resourced, Comparable<Plugin>
public class MockPlugin
- extends AbstractPlugin
- Since:
- 2.3.0
| 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, 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 |
MockPlugin
public MockPlugin(String key,
ClassLoader classLoader)
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 © 2014 Atlassian. All rights reserved.