|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.plugins.PluginManager org.gudy.azureus2.pluginsimpl.local.PluginManagerImpl
public class PluginManagerImpl
Field Summary | |
---|---|
protected static AzureusCore |
azureus_core
|
protected static AEMonitor |
class_mon
|
protected PluginInitializer |
pi
|
protected static boolean |
running
|
protected static PluginManagerImpl |
singleton
|
Fields inherited from class org.gudy.azureus2.plugins.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, UI_NONE, UI_SWT |
Constructor Summary | |
---|---|
protected |
PluginManagerImpl(PluginInitializer _pi)
|
Method Summary | |
---|---|
void |
executeCloseAction(java.lang.String action)
|
void |
firePluginEvent(int ev)
|
PluginInterface |
getDefaultPluginInterface()
returns the default plugin interface that can be used to access plugin functionality without an explicit plugin |
PluginInstaller |
getPluginInstaller()
|
PluginInterface |
getPluginInterfaceByClass(java.lang.Class c)
|
PluginInterface |
getPluginInterfaceByClass(java.lang.Class c,
boolean operational)
Returns the plugin interface with a given class, or null if not found. |
PluginInterface |
getPluginInterfaceByClass(java.lang.String class_name)
|
PluginInterface |
getPluginInterfaceByClass(java.lang.String class_name,
boolean operational)
Returns the plugin interface with a given class name, or null if not found. |
PluginInterface |
getPluginInterfaceByID(java.lang.String id)
returns the plugin interface with a given id, or null if not found |
PluginInterface |
getPluginInterfaceByID(java.lang.String id,
boolean operational)
Returns the plugin interface with a given id, or null if not found. |
PluginInterface[] |
getPluginInterfaces()
Gets the current set of registered plugins. |
PluginInterface[] |
getPlugins()
Gets the current set of registered plugins. |
PluginInterface[] |
getPlugins(boolean expect_partial_result)
|
java.util.List<PluginInterface> |
getPluginsWithMethod(java.lang.String name,
java.lang.Class<?>[] parameters)
*since 5201 |
protected static PluginManagerImpl |
getSingleton(PluginInitializer pi)
|
boolean |
isInitialized()
|
boolean |
isSilentRestartEnabled()
|
void |
refreshPluginList(boolean initialise)
|
static void |
registerPlugin(java.lang.Class plugin_class)
|
static void |
registerPlugin(Plugin plugin,
java.lang.String id,
java.lang.String config_key)
|
static void |
restartAzureus()
|
static void |
setStartDetails(AzureusCore _core)
When AZ is started directly (i.e. |
static PluginManager |
startAzureus(int ui_type,
java.util.Properties properties)
|
static void |
stopAzureus()
|
Methods inherited from class org.gudy.azureus2.plugins.PluginManager |
---|
getDefaults, refreshPluginList, registerPlugin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static boolean running
protected static PluginManagerImpl singleton
protected static AEMonitor class_mon
protected static AzureusCore azureus_core
protected PluginInitializer pi
Constructor Detail |
---|
protected PluginManagerImpl(PluginInitializer _pi)
Method Detail |
---|
protected static PluginManagerImpl getSingleton(PluginInitializer pi)
public static PluginManager startAzureus(int ui_type, java.util.Properties properties)
public static void stopAzureus() throws PluginException
PluginException
public static void restartAzureus() throws PluginException
PluginException
public static void setStartDetails(AzureusCore _core)
type
- public static void registerPlugin(java.lang.Class plugin_class)
public static void registerPlugin(Plugin plugin, java.lang.String id, java.lang.String config_key)
public PluginInterface getPluginInterfaceByID(java.lang.String id)
PluginManager
getPluginInterfaceByID
in class PluginManager
public PluginInterface getPluginInterfaceByID(java.lang.String id, boolean operational)
PluginManager
getPluginInterfaceByID
in class PluginManager
operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public PluginInterface getPluginInterfaceByClass(java.lang.Class c)
getPluginInterfaceByClass
in class PluginManager
public PluginInterface getPluginInterfaceByClass(java.lang.Class c, boolean operational)
PluginManager
getPluginInterfaceByClass
in class PluginManager
operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public PluginInterface getPluginInterfaceByClass(java.lang.String class_name)
getPluginInterfaceByClass
in class PluginManager
public PluginInterface getPluginInterfaceByClass(java.lang.String class_name, boolean operational)
PluginManager
getPluginInterfaceByClass
in class PluginManager
operational
- If true, only return a PluginInterface if the plugin
is operational (i.e. is running).public PluginInterface[] getPluginInterfaces()
PluginManager
getPluginInterfaces
in class PluginManager
public PluginInterface getDefaultPluginInterface()
PluginManager
getDefaultPluginInterface
in class PluginManager
public PluginInterface[] getPlugins()
PluginManager
getPlugins
in class PluginManager
public PluginInterface[] getPlugins(boolean expect_partial_result)
getPlugins
in class PluginManager
public void firePluginEvent(int ev)
firePluginEvent
in class PluginManager
public PluginInstaller getPluginInstaller()
getPluginInstaller
in class PluginManager
public void refreshPluginList(boolean initialise)
refreshPluginList
in class PluginManager
public boolean isSilentRestartEnabled()
isSilentRestartEnabled
in class PluginManager
public boolean isInitialized()
isInitialized
in class PluginManager
public void executeCloseAction(java.lang.String action) throws PluginException
executeCloseAction
in class PluginManager
action
- one of the above CA_
PluginException
public java.util.List<PluginInterface> getPluginsWithMethod(java.lang.String name, java.lang.Class<?>[] parameters)
PluginManager
getPluginsWithMethod
in class PluginManager
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |