|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.pluginsimpl.local.PluginStateImpl
public class PluginStateImpl
Constructor Summary | |
---|---|
PluginStateImpl(PluginInterfaceImpl pi,
PluginInitializer initialiser)
|
Method Summary | |
---|---|
boolean |
hasFailed()
Returns true if there was a problem loading or initialising the plugin. |
boolean |
isBuiltIn()
Built-in plugins are those used internally by Azureus, for example the UPnP plugin. |
boolean |
isDisabled()
Returns true if the plugin has been marked as disabled, and prevented from initialising. |
boolean |
isInitialisationComplete()
|
boolean |
isLoadedAtStartup()
Returns true if the plugin is set to load at startup, false otherwise. |
boolean |
isMandatory()
Whether or not this is a mandatory plugin. |
boolean |
isOperational()
Returns true if the plugin is running, returns false if the plugin isn't running for some reason. |
boolean |
isShared()
|
boolean |
isUnloadable()
|
boolean |
isUnloaded()
|
void |
reload()
|
void |
setDisabled(boolean _disabled)
Sets whether the plugin can be loaded or not. |
void |
setLoadedAtStartup(boolean load_at_startup)
Sets whether the plugin is loaded at startup or not. |
void |
uninstall()
Uninstall this plugin if it has been loaded from a plugin directory. |
void |
unload()
|
protected void |
unload(boolean for_reload)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PluginStateImpl(PluginInterfaceImpl pi, PluginInitializer initialiser)
Method Detail |
---|
public void setLoadedAtStartup(boolean load_at_startup)
PluginState
setLoadedAtStartup
in interface PluginState
public boolean isLoadedAtStartup()
PluginState
isLoadedAtStartup
in interface PluginState
public boolean hasFailed()
PluginState
hasFailed
in interface PluginState
public void setDisabled(boolean _disabled)
PluginState
PluginState.setLoadedAtStartup(boolean)
instead. This needs
to be called prior to a plugin's initialisation to take effect.
setDisabled
in interface PluginState
public boolean isDisabled()
PluginState
isDisabled
in interface PluginState
public boolean isBuiltIn()
PluginState
isBuiltIn
in interface PluginState
public boolean isMandatory()
PluginState
isMandatory
in interface PluginState
public boolean isOperational()
PluginState
isOperational
in interface PluginState
public boolean isShared()
isShared
in interface PluginState
public boolean isInitialisationComplete()
isInitialisationComplete
in interface PluginState
public void reload() throws PluginException
reload
in interface PluginState
PluginException
public void uninstall() throws PluginException
PluginState
uninstall
in interface PluginState
PluginException
public boolean isUnloaded()
isUnloaded
in interface PluginState
public void unload() throws PluginException
unload
in interface PluginState
PluginException
protected void unload(boolean for_reload) throws PluginException
PluginException
public boolean isUnloadable()
isUnloadable
in interface PluginState
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |