public class PluginManager
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PluginManager |
instance
The plugin manager's instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
disableLateDelegationCLForTests(boolean disableLateDelegationCL)
Disable/enable late delegation class loader for tests
|
java.util.List<PluginContributedToolbar> |
getAllContributedToolbarIDs()
Get all contributed toolbar IDs.
|
java.util.List<PluginContributedView> |
getAllContributedViewIDs()
Get all contributed view IDs.
|
java.util.List<java.io.File> |
getAllPluginDirs()
Get all plugin installation directories.
|
java.lang.String |
getDefaultPluginsDir()
Get the plugins directory.
|
java.util.List |
getExceptions()
Get the exceptions raised durring the plugin initialization.
|
static PluginManager |
getInstance()
Get the singleton instance of the plugin manager.
|
java.util.List<PluginDescriptor> |
getPluginDescriptors()
Get all plugin descriptors.
|
java.util.List<Plugin> |
getPlugins()
Get the registered plugins.
|
static java.io.File |
getUserPrefsPluginsDir()
Gets the plugins root directory from user preferences.
|
static java.io.File[] |
getUserPrefsPluginsDirs()
Get plugins directories from the user preferences.
|
boolean |
hasCustomURLHandlerPlugin(java.lang.String protocol)
Check if there are any custom URL handler plugin registered...
|
java.net.URLConnection |
openConnectionWithTargetedURLHandler(java.net.URL url)
Open the URL connection with the URL handlers provided by the Targeted URL Stream Handlers.
|
static boolean |
pluginsUpdateInProgress() |
static void |
setPluginsDir(java.lang.String pluginsDir)
This method is used only for tests.
|
public static PluginManager instance
public static void setPluginsDir(java.lang.String pluginsDir)
pluginsDir
- The custom plugins directory.public static PluginManager getInstance()
public static java.io.File getUserPrefsPluginsDir()
public static java.io.File[] getUserPrefsPluginsDirs()
public java.util.List<Plugin> getPlugins()
public java.util.List<PluginDescriptor> getPluginDescriptors()
public java.util.List<java.io.File> getAllPluginDirs()
public java.util.List<PluginContributedView> getAllContributedViewIDs()
public java.lang.String getDefaultPluginsDir()
public static void disableLateDelegationCLForTests(boolean disableLateDelegationCL)
disableLateDelegationCL
- true
to disable late delegationpublic java.util.List getExceptions()
public boolean hasCustomURLHandlerPlugin(java.lang.String protocol)
protocol
- The protocol to be checked.true
If the protocol is known, false
otherwise.public static boolean pluginsUpdateInProgress()
true
if the plugin manager is updating plugins and cannot yet return them.public java.util.List<PluginContributedToolbar> getAllContributedToolbarIDs()
public java.net.URLConnection openConnectionWithTargetedURLHandler(java.net.URL url) throws java.io.IOException
url
- The URL to open connection for.null
if there is no of
PluginDescriptor.TARGETED_URL_HANDLER plugin type that can handle this URL open connection.java.io.IOException
© Copyright Syncro Soft SRL 2002 - 2014. All rights reserved.