Package org.gudy.azureus2.plugins

Examples of org.gudy.azureus2.plugins.PluginInterface


    plugin    = _plugin;
    tester    = _tester;
     
          //detect the router.
   
        PluginInterface upnp = plugin.getPluginManager().getPluginInterfaceByClass( UPnPPlugin.class );
       
        if( upnp != null ){
         
            detectedRouter = upnp.getPluginconfig().getPluginStringParameter("plugin.info");
        }
       
    tester.addListener(
      new NetworkAdminSpeedTesterListener()
      {
View Full Code Here


  }
 
  private void
  setupExtensions()
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();
   
    final FeatureManager fm = pi.getUtilities().getFeatureManager();
         
    fm.addListener(
      new FeatureManager.FeatureManagerListener()
      {
        public void
        licenceAdded(
          Licence  licence )
        {
          getExtensions( fm, false );
        }
       
        public void
        licenceChanged(
          Licence  licence )
        {
          getExtensions( fm, false );
        }
       
        public void
        licenceRemoved(
          Licence  licence )
        {
          getExtensions( fm, false );
        }
      });
   
    if ( pi.getPluginState().isInitialisationComplete()){
     
      getExtensions( fm, true );
     
    }else{
     
      pi.addListener(
        new PluginListener()
        {
          public void
          initializationComplete()
          {
View Full Code Here

    if (embeddedPlayerAvail) {
      return true;
    }

    try {
      PluginInterface pi = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByID(
          "azemp", true);
      if (pi != null) {
        embeddedPlayerAvail = true;
      }
    } catch (Throwable e1) {
View Full Code Here

      AzureusCore azureus_core )
  {
   
    final PluginManager pm = azureus_core.getPluginManager();
   
    final PluginInterface default_pi = pm.getDefaultPluginInterface();
   
    default_pi.addListener(
      new PluginListener()
      {
        public void
        initializationComplete()
        {
          default_pi.addEventListener(
            new PluginEventListener()
            {
              public void
              handleEvent(
                PluginEvent ev )
View Full Code Here

    if ( progressive_enabled ){
     
      return( true );
    }
 
    PluginInterface  ms_pi = core.getPluginManager().getPluginInterfaceByID( "azupnpav", true );
   
    if ( ms_pi != null ){
     
      progressive_enabled = true;
    }
View Full Code Here

  }

  private static void addPluginVersionsToMap(Map map) {
    if (AzureusCoreFactory.isCoreRunning()) {
      PluginManager pm = AzureusCoreFactory.getSingleton().getPluginManager();
      PluginInterface pi;
      pi = pm.getPluginInterfaceByID("vuzexcode");
      if (pi != null) {
        map.put("xcode-plugin-version", pi.getPluginVersion());
      }
      pi = pm.getPluginInterfaceByID("azitunes");
      if (pi != null) {
        map.put("itunes-plugin-version", pi.getPluginVersion());
      }
    }
    map.put("os-name", Constants.OSName);
  }
View Full Code Here

           
            deleteRelatedContent();
          }
         
          try{
            PluginInterface dht_pi =
              plugin_interface.getPluginManager().getPluginInterfaceByClass(
                    DHTPlugin.class );
     
            if ( dht_pi != null ){
       
              dht_plugin = (DHTPlugin)dht_pi.getPlugin();

              if ( !dht_plugin.isEnabled()){
               
                return;
              }
View Full Code Here

    }
 
    boolean  release_now = true;
   
    try{
      PluginInterface  pi  = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByClass( DHTTrackerPlugin.class );
 
      if ( pi != null ){
       
        final DHTTrackerPlugin plugin = (DHTTrackerPlugin)pi.getPlugin();
       
        new AEThread2( "LWS:waitForPlug", true )
        {
          public void
          run()
View Full Code Here

      started  = true;
    }

    azureus_core = _core;
   
    final PluginInterface default_pi = PluginInitializer.getDefaultInterface();

    rss_publisher = new SubscriptionRSSFeed( this, default_pi );
   
    TorrentManager  tm = default_pi.getTorrentManager();
   
    ta_subs_download     = tm.getPluginAttribute( "azsubs.subs_dl" );
    ta_subs_download_rd   = tm.getPluginAttribute( "azsubs.subs_dl_rd" );
    ta_subscription_info   = tm.getPluginAttribute( "azsubs.subs_info" );
    ta_category        = tm.getAttribute( TorrentAttribute.TA_CATEGORY );
   
    PluginInterface  dht_plugin_pi  = AzureusCoreFactory.getSingleton().getPluginManager().getPluginInterfaceByClass( DHTPlugin.class );
       
    if ( dht_plugin_pi != null ){
     
      dht_plugin = (DHTPlugin)dht_plugin_pi.getPlugin();

      /*
      if ( Constants.isCVSVersion()){
       
        addListener(
View Full Code Here

  }
 
  public int
  getKnownSubscriptionCount()
  {
    PluginInterface pi = PluginInitializer.getDefaultInterface();

    ByteArrayHashMap<String> results = new ByteArrayHashMap<String>();
   
    try{
      Download[] downloads = pi.getDownloadManager().getDownloads();
     
      for ( Download download: downloads ){
       
        Map  m = download.getMapAttribute( ta_subscription_info );
       
View Full Code Here

TOP

Related Classes of org.gudy.azureus2.plugins.PluginInterface

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.