com.atlassian.plugin.module
Class MockContainerManagedPlugin

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

public class MockContainerManagedPlugin
extends com.atlassian.plugin.impl.AbstractPlugin
implements com.atlassian.plugin.module.ContainerManagedPlugin


Field Summary
 
Fields inherited from interface com.atlassian.plugin.Plugin
NAME_COMPARATOR
 
Constructor Summary
MockContainerManagedPlugin(com.atlassian.plugin.module.ContainerAccessor containerAccessor)
           
 
Method Summary
 java.lang.ClassLoader getClassLoader()
           
 com.atlassian.plugin.module.ContainerAccessor getContainerAccessor()
           
 java.net.URL getResource(java.lang.String path)
           
 java.io.InputStream getResourceAsStream(java.lang.String name)
           
 boolean isDeleteable()
           
 boolean isDynamicallyLoaded()
           
 boolean isUninstallable()
           
<T> java.lang.Class<T>
loadClass(java.lang.String clazz, java.lang.Class<?> callingClass)
           
 
Methods inherited from class com.atlassian.plugin.impl.AbstractPlugin
addModuleDescriptor, close, compareAndSetPluginState, compareTo, containsSystemModule, disable, disableInternal, enable, enableInternal, getDateLoaded, getI18nNameKey, getInstallationMode, getKey, getLog, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPermissions, 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
 
Methods inherited from interface com.atlassian.plugin.Plugin
addModuleDescriptor, close, containsSystemModule, disable, enable, getDateLoaded, getI18nNameKey, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPermissions, getPluginInformation, getPluginState, getPluginsVersion, getRequiredPlugins, install, isBundledPlugin, isEnabled, isEnabledByDefault, isSystemPlugin, setEnabled, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin, uninstall
 
Methods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceDescriptors, getResourceLocation
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MockContainerManagedPlugin

public MockContainerManagedPlugin(com.atlassian.plugin.module.ContainerAccessor containerAccessor)
Method Detail

getContainerAccessor

public com.atlassian.plugin.module.ContainerAccessor getContainerAccessor()
Specified by:
getContainerAccessor in interface com.atlassian.plugin.module.ContainerManagedPlugin

isUninstallable

public boolean isUninstallable()
Specified by:
isUninstallable in interface com.atlassian.plugin.Plugin

isDeleteable

public boolean isDeleteable()
Specified by:
isDeleteable in interface com.atlassian.plugin.Plugin

isDynamicallyLoaded

public boolean isDynamicallyLoaded()
Specified by:
isDynamicallyLoaded in interface com.atlassian.plugin.Plugin

loadClass

public <T> java.lang.Class<T> loadClass(java.lang.String clazz,
                                        java.lang.Class<?> callingClass)
                             throws java.lang.ClassNotFoundException
Specified by:
loadClass in interface com.atlassian.plugin.Plugin
Throws:
java.lang.ClassNotFoundException

getClassLoader

public java.lang.ClassLoader getClassLoader()
Specified by:
getClassLoader in interface com.atlassian.plugin.Plugin

getResource

public java.net.URL getResource(java.lang.String path)
Specified by:
getResource in interface com.atlassian.plugin.Plugin

getResourceAsStream

public java.io.InputStream getResourceAsStream(java.lang.String name)
Specified by:
getResourceAsStream in interface com.atlassian.plugin.Plugin


Copyright © 2012 Atlassian. All Rights Reserved.