|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.plugins.PluginManager
public abstract class PluginManager
This class allows Azureus to be started as an embedded component and also allows plugins to be dynamically registered
Field Summary | |
---|---|
static java.lang.String |
CA_HIBERNATE
|
static java.lang.String |
CA_QUIT_VUZE
|
static java.lang.String |
CA_SHUTDOWN
|
static java.lang.String |
CA_SLEEP
|
static java.lang.String |
PR_APP_DIRECTORY
Where azureus is 'installed'. |
static java.lang.String |
PR_DISABLE_NATIVE_SUPPORT
Set this to "true" (String) if you want to disable any native platform support String value |
static java.lang.String |
PR_DOC_DIRECTORY
Parent folder that contains the downloads directory String value |
static java.lang.String |
PR_MULTI_INSTANCE
Property Key: Allow multiple instances. |
static java.lang.String |
PR_USER_DIRECTORY
Where the azureus config (i.e. |
static int |
UI_NONE
No user interface |
static int |
UI_SWT
SWT user inferface |
Constructor Summary | |
---|---|
PluginManager()
|
Method Summary | |
---|---|
abstract void |
executeCloseAction(java.lang.String action)
|
abstract void |
firePluginEvent(int event_type)
|
abstract PluginInterface |
getDefaultPluginInterface()
returns the default plugin interface that can be used to access plugin functionality without an explicit plugin |
static PluginManagerDefaults |
getDefaults()
|
abstract PluginInstaller |
getPluginInstaller()
|
abstract PluginInterface |
getPluginInterfaceByClass(java.lang.Class c)
|
abstract PluginInterface |
getPluginInterfaceByClass(java.lang.Class class_object,
boolean operational)
Returns the plugin interface with a given class, or null if not found. |
abstract PluginInterface |
getPluginInterfaceByClass(java.lang.String class_name)
|
abstract PluginInterface |
getPluginInterfaceByClass(java.lang.String class_name,
boolean operational)
Returns the plugin interface with a given class name, or null if not found. |
abstract PluginInterface |
getPluginInterfaceByID(java.lang.String id)
returns the plugin interface with a given id, or null if not found |
abstract PluginInterface |
getPluginInterfaceByID(java.lang.String id,
boolean operational)
Returns the plugin interface with a given id, or null if not found. |
abstract PluginInterface[] |
getPluginInterfaces()
Gets the current set of registered plugins. |
abstract PluginInterface[] |
getPlugins()
Gets the current set of registered plugins. |
abstract PluginInterface[] |
getPlugins(boolean expect_partial_result)
|
abstract java.util.List<PluginInterface> |
getPluginsWithMethod(java.lang.String name,
java.lang.Class<?>[] parameters)
*since 5201 |
abstract boolean |
isInitialized()
|
abstract boolean |
isSilentRestartEnabled()
|
void |
refreshPluginList()
|
abstract void |
refreshPluginList(boolean initialise)
|
static void |
registerPlugin(java.lang.Class plugin_class)
Programatic plugin registration interface |
static void |
registerPlugin(Plugin plugin,
java.lang.String id)
|
static void |
registerPlugin(Plugin plugin,
java.lang.String id,
java.lang.String config_key)
|
static void |
restartAzureus()
restarts azureus and performs any Update actions defined via the plugin "update" interface. |
static PluginManager |
startAzureus(int ui_type,
java.util.Properties properties)
Runs Azureus |
static void |
stopAzureus()
Shuts down Azureus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UI_NONE
public static final int UI_SWT
public static final java.lang.String PR_MULTI_INSTANCE
public static final java.lang.String PR_USER_DIRECTORY
public static final java.lang.String PR_APP_DIRECTORY
public static final java.lang.String PR_DOC_DIRECTORY
public static final java.lang.String PR_DISABLE_NATIVE_SUPPORT
public static final java.lang.String CA_QUIT_VUZE
public static final java.lang.String CA_SLEEP
public static final java.lang.String CA_HIBERNATE
public static final java.lang.String CA_SHUTDOWN
Constructor Detail |
---|
public PluginManager()
Method Detail |
---|
public static PluginManagerDefaults getDefaults()
public static PluginManager startAzureus(int ui_type, java.util.Properties properties)
ui_type
- Type of user interface to provide. See UI_* Constantsproperties
- A list of properties to pass Azureus. See PR_* constants.public static void stopAzureus() throws PluginException
PluginException
public static void restartAzureus() throws PluginException
PluginException
public static void registerPlugin(java.lang.Class plugin_class)
plugin_class
- this must implement Pluginpublic static void registerPlugin(Plugin plugin, java.lang.String id)
public static void registerPlugin(Plugin plugin, java.lang.String id, java.lang.String config_key)
public abstract PluginInterface getPluginInterfaceByID(java.lang.String id, boolean operational)
id
- operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public abstract PluginInterface getPluginInterfaceByClass(java.lang.String class_name, boolean operational)
class_name
- operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public abstract PluginInterface getPluginInterfaceByClass(java.lang.Class class_object, boolean operational)
class_object
- operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public abstract PluginInterface[] getPluginInterfaces()
public abstract PluginInterface getDefaultPluginInterface()
public abstract PluginInterface[] getPlugins()
public abstract PluginInterface[] getPlugins(boolean expect_partial_result)
public abstract void firePluginEvent(int event_type)
public abstract PluginInstaller getPluginInstaller()
public final void refreshPluginList()
public abstract void refreshPluginList(boolean initialise)
public abstract boolean isSilentRestartEnabled()
public abstract boolean isInitialized()
public abstract void executeCloseAction(java.lang.String action) throws PluginException
action
- one of the above CA_
PluginException
public abstract PluginInterface getPluginInterfaceByID(java.lang.String id)
id
-
public abstract PluginInterface getPluginInterfaceByClass(java.lang.String class_name)
public abstract PluginInterface getPluginInterfaceByClass(java.lang.Class c)
public abstract java.util.List<PluginInterface> getPluginsWithMethod(java.lang.String name, java.lang.Class<?>[] parameters)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |