Package com.biglybt.pifimpl.local
Class PluginManagerImpl
java.lang.Object
com.biglybt.pif.PluginManager
com.biglybt.pifimpl.local.PluginManagerImpl
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.pif.PluginManager
PluginManager.StartClientListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static AEMonitor
protected static Core
private static final boolean
protected PluginInitializer
protected static boolean
protected static PluginManagerImpl
Fields inherited from class com.biglybt.pif.PluginManager
CA_HIBERNATE, CA_QUIT_VUZE, CA_SHUTDOWN, CA_SLEEP, PR_APP_DIRECTORY, PR_DISABLE_NATIVE_SUPPORT, PR_DOC_DIRECTORY, PR_MULTI_INSTANCE, PR_USER_DIRECTORY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeCloseAction
(String action) void
firePluginEvent
(int ev) returns the default plugin interface that can be used to access plugin functionality without an explicit plugingetPluginInterfaceByClass
(Class c, boolean operational) Returns the plugin interface with a given class, or null if not found.getPluginInterfaceByClass
(String class_name) getPluginInterfaceByClass
(String class_name, boolean operational) Returns the plugin interface with a given class name, or null if not found.returns the plugin interface with a given id, or null if not foundgetPluginInterfaceByID
(String id, boolean operational) Returns the plugin interface with a given id, or null if not found.Gets the current set of registered plugins.Gets the current set of registered plugins.getPlugins
(boolean expect_partial_result) getPluginsWithMethod
(String name, Class<?>[] parameters) *since 5201protected static PluginManagerImpl
boolean
boolean
void
refreshPluginList
(boolean initialise) static void
registerPlugin
(Plugin plugin, String id, String config_key) static void
registerPlugin
(Class<? extends Plugin> plugin_class) static void
static void
setStartDetails
(Core _core) When AZ is started directly (i.e.static void
startClient
(String ui, Properties properties, PluginManager.StartClientListener startClientListener) Starts client.static void
Methods inherited from class com.biglybt.pif.PluginManager
getDefaults, refreshPluginList, registerPlugin
-
Field Details
-
running
protected static boolean running -
GET_PI_METHODS_OPERATIONAL_FLAG_DEFAULT
private static final boolean GET_PI_METHODS_OPERATIONAL_FLAG_DEFAULT- See Also:
-
singleton
-
class_mon
-
core
-
pi
-
-
Constructor Details
-
PluginManagerImpl
-
-
Method Details
-
getSingleton
-
startClient
public static void startClient(String ui, Properties properties, PluginManager.StartClientListener startClientListener) throws PluginException Starts client.With the exception of null ui, method does not return until client is closed.
- Parameters:
ui
- "swt", "console", "telnet", etcproperties
-- Throws:
PluginException
-
stopClient
- Throws:
PluginException
-
restartClient
- Throws:
PluginException
-
setStartDetails
When AZ is started directly (i.e. not via a plugin) this method is called so that the running state is correctly understood- Parameters:
type
-
-
registerPlugin
-
registerPlugin
-
getPluginInterfaceByID
Description copied from class:PluginManager
returns the plugin interface with a given id, or null if not found- Specified by:
getPluginInterfaceByID
in classPluginManager
- Parameters:
id
-- Returns:
-
getPluginInterfaceByID
Description copied from class:PluginManager
Returns the plugin interface with a given id, or null if not found.- Specified by:
getPluginInterfaceByID
in classPluginManager
- Parameters:
id
-operational
- If true, only return a PluginInterface if the plugin is operational (i.e. is running).
-
getPluginInterfaceByClass
- Specified by:
getPluginInterfaceByClass
in classPluginManager
-
getPluginInterfaceByClass
Description copied from class:PluginManager
Returns the plugin interface with a given class, or null if not found.- Specified by:
getPluginInterfaceByClass
in classPluginManager
- Parameters:
c
-operational
- If true, only return a PluginInterface if the plugin is operational (i.e. is running).
-
getPluginInterfaceByClass
- Specified by:
getPluginInterfaceByClass
in classPluginManager
-
getPluginInterfaceByClass
Description copied from class:PluginManager
Returns the plugin interface with a given class name, or null if not found.- Specified by:
getPluginInterfaceByClass
in classPluginManager
- Parameters:
class_name
-operational
- If true, only return a PluginInterface if the plugin is operational (i.e. is running).
-
getPluginInterfaces
Description copied from class:PluginManager
Gets the current set of registered plugins. During initialisation this will probably give partial results as plugin initialisation is non-deterministic.- Specified by:
getPluginInterfaces
in classPluginManager
- Returns:
-
getDefaultPluginInterface
Description copied from class:PluginManager
returns the default plugin interface that can be used to access plugin functionality without an explicit plugin- Specified by:
getDefaultPluginInterface
in classPluginManager
- Returns:
- null if unavailable
-
getPlugins
Description copied from class:PluginManager
Gets the current set of registered plugins. During initialisation this will probably give partial results as plugin initialisation is non-deterministic.- Specified by:
getPlugins
in classPluginManager
- Returns:
-
getPlugins
- Specified by:
getPlugins
in classPluginManager
-
firePluginEvent
public void firePluginEvent(int ev) - Specified by:
firePluginEvent
in classPluginManager
-
getPluginInstaller
- Specified by:
getPluginInstaller
in classPluginManager
-
refreshPluginList
public void refreshPluginList(boolean initialise) - Specified by:
refreshPluginList
in classPluginManager
-
isSilentRestartEnabled
public boolean isSilentRestartEnabled()- Specified by:
isSilentRestartEnabled
in classPluginManager
-
isInitialized
public boolean isInitialized()- Specified by:
isInitialized
in classPluginManager
-
executeCloseAction
- Specified by:
executeCloseAction
in classPluginManager
- Parameters:
action
- one of the above CA_- Throws:
PluginException
-
getPluginsWithMethod
Description copied from class:PluginManager
*since 5201- Specified by:
getPluginsWithMethod
in classPluginManager
-