FileDocCategorySizeDatePackage
InitialisationFunctions.javaAPI DocAzureus 3.0.3.42747Wed Jul 25 12:05:42 BST 2007com.aelitis.azureus.util

InitialisationFunctions

public class InitialisationFunctions extends Object

Fields Summary
private static final String
EXTENSION_PREFIX
Constructors Summary
Methods Summary
public static voidearlyInitialisation(com.aelitis.azureus.core.AzureusCore core)


	     
		
		DownloadUtils.initialise( core );
		
		DownloadManagerEnhancer dme = DownloadManagerEnhancer.initialise(core);

		registerTrackerURLExtensions(core);

		AzureusPlatformContentDirectory.register();

		CacheDiscovery.initialise( dme );
	
public static voidlateInitialisation(com.aelitis.azureus.core.AzureusCore core)

		ExternalStimulusHandler.initialise(core);
	
protected static voidregisterTrackerURLExtensions(com.aelitis.azureus.core.AzureusCore core)

		PluginInterface pi = core.getPluginManager().getDefaultPluginInterface();

		pi.getDownloadManager().addListener(
			new DownloadManagerListener() 
			{
			public void 
			downloadAdded(
				Download download )
			{
					// only add the azid to platform content
				
				Torrent t = download.getTorrent();
				
				if ( t == null ){
					
					return;
				}
				
				if ( !PlatformTorrentUtils.isContent( t, true )){
					
					return;
				}
				
				DownloadUtils.addTrackerExtension( download, EXTENSION_PREFIX, Constants.AZID );
			}

			public void downloadRemoved(Download download) {
			}
		});