public class MockPlugin extends AbstractPlugin
pluginArtifact| 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) |
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, 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 © 2019 Atlassian. All rights reserved.