|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.atlassian.confluence.plugin.ConfluencePluginUtils
public class ConfluencePluginUtils
Field Summary | |
---|---|
static String |
CONFLUENCE_APPLICATION_KEY
|
static String |
PLUGIN_DESCRIPTOR_FILENAME
|
Constructor Summary | |
---|---|
ConfluencePluginUtils()
|
Method Summary | ||
---|---|---|
static File |
createDirectoryIfDoesntExist(String directoryLocation)
|
|
static File |
getBundledPluginDirectory(BootstrapManager bootstrapManager)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getBundledPluginDirectory If running before bootstrap use getBundledPluginDirectory(HomeLocator homeLocator), the homeLocator returns the correct confluence home even if bootstrap hasn't been initialised. |
|
static File |
getBundledPluginDirectory(HomeLocator homeLocator)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getBundledPluginDirectory Finds the bundled plugins directory in the confluence home. If it doesn't exist the directory is created. |
|
static File |
getPluginDirectory(BootstrapManager bootstrapManager)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getPluginDirectory |
|
static File |
getPluginsPersistentCacheDirectory(BootstrapManager bootstrapManager)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getPluginsPersistentCacheDirectory If running before bootstrap use getBundledPluginDirectory(HomeLocator homeLocator), the homeLocator returns the correct confluence home even if bootstrap hasn't been initialised. |
|
static File |
getPluginsPersistentCacheDirectory(HomeLocator homeLocator)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getPluginsPersistentCacheDirectory Finds the plugins persistent cache directory in the confluence home. If it doesn't exist the directory is created. |
|
static File |
getPluginTempDirectory(BootstrapManager bootstrapManager)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getPluginTempDirectory If running before bootstrap use getPluginTempDirectory(HomeLocator homeLocator), the homeLocator returns the correct confluence home even if bootstrap hasn't been initialised. |
|
static File |
getPluginTempDirectory(HomeLocator homeLocator)
Deprecated. use com.atlassian.confluence.plugin.PluginDirectoryProvider#getPluginTempDirectory Finds the plugins-temp directory in the confluence home. If it doesn't exist the directory is created. |
|
static
|
instantiatePluginModule(com.atlassian.plugin.Plugin plugin,
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 |
Field Detail |
---|
public static final String CONFLUENCE_APPLICATION_KEY
public static final String PLUGIN_DESCRIPTOR_FILENAME
Constructor Detail |
---|
public ConfluencePluginUtils()
Method Detail |
---|
public static File getPluginDirectory(BootstrapManager bootstrapManager)
bootstrapManager
- - used to get the confluence home directory
public static File getPluginTempDirectory(BootstrapManager bootstrapManager)
bootstrapManager
- - used to get the confluence home directory
public static File getPluginTempDirectory(HomeLocator homeLocator)
homeLocator
- - used to get the confluence home directory
public static File getBundledPluginDirectory(BootstrapManager bootstrapManager)
bootstrapManager
- - used to get the confluence home directory
public static File getBundledPluginDirectory(HomeLocator homeLocator)
homeLocator
- - used to get the confluence home directory
public static File getPluginsPersistentCacheDirectory(BootstrapManager bootstrapManager)
bootstrapManager
- - used to get the confluence home directory
public static File getPluginsPersistentCacheDirectory(HomeLocator homeLocator)
homeLocator
- - used to get the confluence home directory
public static <T> T instantiatePluginModule(com.atlassian.plugin.Plugin plugin, Class<T> cls)
AutowireCapablePlugin
is implemented, otherwise falls back to creation and autowiring by the internal Spring container.
plugin
- The plugin that contains the modulecls
- The class to instantiate and autowire
public static File createDirectoryIfDoesntExist(String directoryLocation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |