com.atlassian.confluence.plugin
Class ConfluencePluginUtils
java.lang.Object
com.atlassian.confluence.plugin.ConfluencePluginUtils
public class ConfluencePluginUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConfluencePluginUtils
public ConfluencePluginUtils()
getPluginDirectory
public static File getPluginDirectory(BootstrapManager bootstrapManager)
getPluginTempDirectory
public static File getPluginTempDirectory(BootstrapManager bootstrapManager)
getBundledPluginDirectory
public static File getBundledPluginDirectory(BootstrapManager bootstrapManager)
getOsgiFrameworkBundlesDirectory
public static File getOsgiFrameworkBundlesDirectory(BootstrapManager bootstrapManager)
instantiatePluginModule
public static <T> T instantiatePluginModule(com.atlassian.plugin.Plugin plugin,
Class<T> cls)
- Instantiates a plugin module. First tries to let the plugin autowire the class, if
AutowireCapablePlugin
is implemented, otherwise falls back to creation and autowiring by the internal Spring container.
- Parameters:
plugin
- The plugin that contains the modulecls
- The class to instantiate and autowire
- Returns:
- The created and autowired object