com.atlassian.confluence.plugin
Class ConfluencePluginUtils

java.lang.Object
  extended by com.atlassian.confluence.plugin.ConfluencePluginUtils

public class ConfluencePluginUtils
extends java.lang.Object


Constructor Summary
ConfluencePluginUtils()
           
 
Method Summary
static java.io.File getBundledPluginDirectory(BootstrapManager bootstrapManager)
           
static java.io.File getOsgiFrameworkBundlesDirectory(BootstrapManager bootstrapManager)
           
static java.io.File getPluginDirectory(BootstrapManager bootstrapManager)
           
static java.io.File getPluginTempDirectory(BootstrapManager bootstrapManager)
           
static
<T> T
instantiatePluginModule(com.atlassian.plugin.Plugin plugin, java.lang.Class<T> cls)
          Instantiates a plugin module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluencePluginUtils

public ConfluencePluginUtils()
Method Detail

getPluginDirectory

public static java.io.File getPluginDirectory(BootstrapManager bootstrapManager)

getPluginTempDirectory

public static java.io.File getPluginTempDirectory(BootstrapManager bootstrapManager)

getBundledPluginDirectory

public static java.io.File getBundledPluginDirectory(BootstrapManager bootstrapManager)

getOsgiFrameworkBundlesDirectory

public static java.io.File getOsgiFrameworkBundlesDirectory(BootstrapManager bootstrapManager)

instantiatePluginModule

public static <T> T instantiatePluginModule(com.atlassian.plugin.Plugin plugin,
                                            java.lang.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 module
cls - The class to instantiate and autowire
Returns:
The created and autowired object


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.