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 java.lang.Object
implements PluginManagerDefaults


Field Summary
protected  java.util.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
 java.lang.String getApplicationEntryPoint()
           
 java.lang.String getApplicationIdentifier()
           
 java.lang.String getApplicationName()
           
 java.lang.String[] getDefaultPlugins()
           
static PluginManagerDefaults getSingleton()
           
 boolean isDefaultPluginEnabled(java.lang.String plugin_id)
           
 void setApplicationEntryPoint(java.lang.String ep)
           
 void setApplicationIdentifier(java.lang.String id)
           
 void setApplicationName(java.lang.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(java.lang.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, java.lang.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 java.util.List disabled
Constructor Detail

PluginManagerDefaultsImpl

public PluginManagerDefaultsImpl()
Method Detail

getSingleton

public static PluginManagerDefaults getSingleton()

getDefaultPlugins

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

setDefaultPluginEnabled

public void setDefaultPluginEnabled(java.lang.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(java.lang.String plugin_id)
Specified by:
isDefaultPluginEnabled in interface PluginManagerDefaults

setApplicationName

public void setApplicationName(java.lang.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 java.lang.String getApplicationName()
Specified by:
getApplicationName in interface PluginManagerDefaults

setApplicationIdentifier

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

getApplicationIdentifier

public java.lang.String getApplicationIdentifier()
Specified by:
getApplicationIdentifier in interface PluginManagerDefaults

setApplicationEntryPoint

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

getApplicationEntryPoint

public java.lang.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,
                                                  java.lang.String[] args)
Specified by:
setSingleInstanceHandlerAndProcess in interface PluginManagerDefaults