FileDocCategorySizeDatePackage
Test.javaAPI DocAzureus 3.0.3.43062Mon Jul 30 17:10:02 BST 2007org.gudy.azureus2.pluginsimpl.local.installer

Test

public class Test extends Object implements Plugin, PluginListener
author
parg

Fields Summary
protected PluginManager
manager
Constructors Summary
public Test()

		// constructor for Plugin
	
public Test(boolean ignore)

		Properties props = new Properties();
		
		props.put( PluginManager.PR_MULTI_INSTANCE, "true" );
		
		PluginManager.registerPlugin( Test.class );
	
		PluginManager.startAzureus( PluginManager.UI_SWT, props );
	
Methods Summary
public voidclosedownComplete()

		
	
public voidclosedownInitiated()

		
	
public voidinitializationComplete()

		new AEThread("install tester" )
		{
			public void
			runSupport()
			{	
				try{
					sleep(10000);
					
					/*
					PluginInstaller	installer = manager.getPluginInstaller();
					
					StandardPlugin[]	sps = installer.getStandardPlugins();
					
					String	install_name = "azshareexporter";
					
					StandardPlugin	install_act = null;
					
					for (int i=0;i<sps.length;i++){
						
						StandardPlugin	sp = sps[i];
						
						System.out.println( "Standard Plugin: " + sp.getId() + " - " + sp.getVersion() + ", installed = " + sp.getAlreadyInstalledPlugin());
						
						if ( sp.getId().equals( install_name )){
							
							install_act = sp;
						}
					}
					
					install_act.install( true );
					*/
					
					/*
					FilePluginInstaller inst = installer.installFromFile(new File("C:\\temp\\azshareexporter_0.1.jar"));
					
					inst.install( false );
					*/
					
					PluginInterface pi = manager.getPluginInterfaceByID("azshareexporter");
					
					pi.uninstall();
					
				}catch( Throwable e ){
					
					e.printStackTrace();
				}
			}
		}.start();
	
public voidinitialize(PluginInterface pi)

		manager	= pi.getPluginManager();
		
		pi.addListener( this );
	
public static voidmain(java.lang.String[] args)

		new Test(true);