FileDocCategorySizeDatePackage
PluginManager.javaAPI DocAzureus 3.0.3.44390Tue Apr 04 20:12:00 BST 2006org.gudy.azureus2.plugins

PluginManager

public abstract class PluginManager extends Object
This class allows Azureus to be started as an embedded component and also allows plugins to be dynamically registered
author
parg

Fields Summary
public static final int
UI_NONE
No user interface
public static final int
UI_SWT
SWT user inferface
public static final String
PR_MULTI_INSTANCE
Property Key: Allow multiple instances. Normally Azureus will only permit a single instance to run per machine. Values for this key are: "true" or "false"
Constructors Summary
Methods Summary
public abstract voidfirePluginEvent(int event_type)

public abstract PluginInterfacegetDefaultPluginInterface()
returns the default plugin interface that can be used to access plugin functionality without an explicit plugin

return
null if unavailable

public static PluginManagerDefaultsgetDefaults()

	
	  
	
	
		return( PluginManagerDefaultsImpl.getSingleton());
	
public abstract PluginInstallergetPluginInstaller()

public abstract PluginInterfacegetPluginInterfaceByClass(java.lang.String class_name)

since
2.1.0.0

public abstract PluginInterfacegetPluginInterfaceByClass(java.lang.Class c)

public abstract PluginInterfacegetPluginInterfaceByID(java.lang.String id)
returns the plugin interface with a given id, or null if not found

param
id
return
since
2.1.0.0

public abstract PluginInterface[]getPluginInterfaces()
Gets the current set of registered plugins. During initialisation this will probably give partial results as plugin initialisation is non-deterministic.

return
since
2.1.0.0

public abstract PluginInterface[]getPlugins()
Gets the current set of registered plugins. During initialisation this will probably give partial results as plugin initialisation is non-deterministic.

return
since
2.1.0.0

public abstract voidrefreshPluginList()

public static voidregisterPlugin(java.lang.Class plugin_class)
Programatic plugin registration interface

param
plugin_class this must implement Plugin
since
2.0.6.0

		PluginManagerImpl.registerPlugin( plugin_class );
	
public static voidregisterPlugin(Plugin plugin, java.lang.String id)

		PluginManagerImpl.registerPlugin( plugin, id );
	
public static voidrestartAzureus()
restarts azureus and performs any Update actions defined via the plugin "update" interface. Currently only works for SWT UIs.

throws
PluginException
since
2.1.0.0

		PluginManagerImpl.restartAzureus();
	
public static org.gudy.azureus2.plugins.PluginManagerstartAzureus(int ui_type, java.util.Properties properties)
Runs Azureus

param
ui_type Type of user interface to provide. See UI_* Constants
param
properties A list of properties to pass Azureus. See PR_* constants.
since
2.0.6.0

		return( PluginManagerImpl.startAzureus( ui_type, properties ));
	
public static voidstopAzureus()
Shuts down Azureus

throws
PluginException
since
2.0.8.0

		PluginManagerImpl.stopAzureus();