org.gudy.azureus2.pluginsimpl.local
Class PluginManagerDefaultsImpl

java.lang.Object
  extended by org.gudy.azureus2.pluginsimpl.local.PluginManagerDefaultsImpl
All Implemented Interfaces:
PluginManagerDefaults

public class PluginManagerDefaultsImpl
extends Object
implements PluginManagerDefaults


Field Summary
protected  List disabled
           
protected static PluginManagerDefaultsImpl singleton
           
 
Fields inherited from interface org.gudy.azureus2.plugins.PluginManagerDefaults
PID_BUDDY, PID_CORE_PATCH_CHECKER, PID_CORE_UPDATE_CHECKER, PID_DEFAULT_TRACKER_WEB, PID_DHT, PID_DHT_TRACKER, PID_EXTERNAL_SEED, PID_LOCAL_TRACKER, PID_MAGNET, PID_NET_STATUS, PID_PLATFORM_CHECKER, PID_PLUGIN_UPDATE_CHECKER, PID_REMOVE_RULES, PID_RSS, PID_SHARE_HOSTER, PID_START_STOP_RULES, PID_TRACKER_PEER_AUTH, PID_UPNP, PLUGIN_IDS
 
Constructor Summary
PluginManagerDefaultsImpl()
           
 
Method Summary
 String getApplicationEntryPoint()
           
 String getApplicationIdentifier()
           
 String getApplicationName()
           
 String[] getDefaultPlugins()
           
static PluginManagerDefaults getSingleton()
           
 boolean isDefaultPluginEnabled(String plugin_id)
           
 void setApplicationEntryPoint(String ep)
           
 void setApplicationIdentifier(String id)
           
 void setApplicationName(String name)
          Set the name of the application, default is "Azureus", and an identifier for it, default is "az" default for entry point is the SWT UI
 void setDefaultPluginEnabled(String plugin_id, boolean enabled)
          by default all default plugins are enabled.
 void setSingleInstanceHandler(int single_instance_port, PluginManagerArgumentHandler handler)
           
 boolean setSingleInstanceHandlerAndProcess(int single_instance_port, PluginManagerArgumentHandler handler, String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

protected static PluginManagerDefaultsImpl singleton

disabled

protected List disabled
Constructor Detail

PluginManagerDefaultsImpl

public PluginManagerDefaultsImpl()
Method Detail

getSingleton

public static PluginManagerDefaults getSingleton()

getDefaultPlugins

public String[] getDefaultPlugins()
Specified by:
getDefaultPlugins in interface PluginManagerDefaults

setDefaultPluginEnabled

public void setDefaultPluginEnabled(String plugin_id,
                                    boolean enabled)
Description copied from interface: PluginManagerDefaults
by default all default plugins are enabled. This methods allows them to be disabled

Specified by:
setDefaultPluginEnabled in interface PluginManagerDefaults

isDefaultPluginEnabled

public boolean isDefaultPluginEnabled(String plugin_id)
Specified by:
isDefaultPluginEnabled in interface PluginManagerDefaults

setApplicationName

public void setApplicationName(String name)
Description copied from interface: PluginManagerDefaults
Set the name of the application, default is "Azureus", and an identifier for it, default is "az" default for entry point is the SWT UI

Specified by:
setApplicationName in interface PluginManagerDefaults

getApplicationName

public String getApplicationName()
Specified by:
getApplicationName in interface PluginManagerDefaults

setApplicationIdentifier

public void setApplicationIdentifier(String id)
Specified by:
setApplicationIdentifier in interface PluginManagerDefaults

getApplicationIdentifier

public String getApplicationIdentifier()
Specified by:
getApplicationIdentifier in interface PluginManagerDefaults

setApplicationEntryPoint

public void setApplicationEntryPoint(String ep)
Specified by:
setApplicationEntryPoint in interface PluginManagerDefaults

getApplicationEntryPoint

public String getApplicationEntryPoint()
Specified by:
getApplicationEntryPoint in interface PluginManagerDefaults

setSingleInstanceHandler

public void setSingleInstanceHandler(int single_instance_port,
                                     PluginManagerArgumentHandler handler)
Specified by:
setSingleInstanceHandler in interface PluginManagerDefaults

setSingleInstanceHandlerAndProcess

public boolean setSingleInstanceHandlerAndProcess(int single_instance_port,
                                                  PluginManagerArgumentHandler handler,
                                                  String[] args)
Specified by:
setSingleInstanceHandlerAndProcess in interface PluginManagerDefaults