public class MockPlugin extends AbstractPlugin
NAME_COMPARATOR, VERSION_1, VERSION_2, VERSION_3| Constructor and Description |
|---|
MockPlugin(String key,
ClassLoader classLoader) |
| Modifier and Type | Method and 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) |
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, uninstallInternalpublic MockPlugin(String key, ClassLoader classLoader)
public boolean isUninstallable()
public boolean isDeleteable()
public boolean isDynamicallyLoaded()
public <T> Class<T> loadClass(String clazz, Class<?> callingClass) throws ClassNotFoundException
ClassNotFoundExceptionpublic ClassLoader getClassLoader()
public InputStream getResourceAsStream(String name)
Copyright © 2014 Atlassian. All rights reserved.