com.atlassian.plugin
Class MockPlugin

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

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

Since:
2.3.0

Field Summary
 
Fields inherited from interface com.atlassian.plugin.Plugin
NAME_COMPARATOR
 
Constructor Summary
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, getDateLoaded, getI18nNameKey, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation, 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,
                  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 © 2011 Atlassian. All Rights Reserved.