|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectro.sync.exml.plugin.PluginManager
public class PluginManager
The plugin manager is responsable to find and instantiate plugins.
Field Summary | |
---|---|
static PluginManager |
instance
The plugin manager's instance. |
Method Summary | |
---|---|
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<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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static PluginManager instance
Method Detail |
---|
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<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
|
Oxygen XML Editor, Version 14.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |