Examples of addListener()


Examples of org.gradle.GradleLauncher.addListener()

        assertCanExecute();
        if (isQuiet()) {
            parameter.setLogLevel(LogLevel.QUIET);
        }
        GradleLauncher gradleLauncher = GradleLauncher.newInstance(parameter);
        gradleLauncher.addListener(listener);
        gradleLauncher.addStandardOutputListener(outputListener);
        gradleLauncher.addStandardErrorListener(errorListener);
        try {
            return gradleLauncher.run();
        } finally {
View Full Code Here

Examples of org.gradle.listener.ListenerManager.addListener()

        commandLineConverter = sharedServices.get(CommandLineConverter.class);
        tracker = new NestedBuildTracker();

        // Register default loggers
        ListenerManager listenerManager = sharedServices.get(ListenerManager.class);
        listenerManager.addListener(new BuildProgressLogger(sharedServices.get(ProgressLoggerFactory.class)));

        GradleLauncher.injectCustomFactory(this);
    }

    public StartParameter createStartParameter(String... commandLineArgs) {
View Full Code Here

Examples of org.gudy.azureus2.core3.config.impl.ConfigurationManager.addListener()

      config.registerTransientParameter(key);
      config.setParameterRawNoNotify(key, entry.getValue());
      config.addParameterListener(key, this);
    }
   
    config.addListener(this);
  }
 
  public File getConfigFile() {
    return this.source_file;
  }
View Full Code Here

Examples of org.gudy.azureus2.core3.download.DownloadManager.addListener()

        CategoryManager.addCategoryManagerListener(MyTorrentsView.this);
        globalManager.addListener(MyTorrentsView.this, false);
        DownloadManager[] dms = (DownloadManager[]) globalManager.getDownloadManagers().toArray(new DownloadManager[0]);
        for (int i = 0; i < dms.length; i++) {
          DownloadManager dm = dms[i];
          dm.addListener(MyTorrentsView.this);
          if (!isOurDownloadManager(dm)) {
            dms[i] = null;
          }
        }
        tv.addDataSources(dms);
View Full Code Here

Examples of org.gudy.azureus2.core3.global.GlobalManager.addListener()

          {
            if ( comp instanceof GlobalManager ){
             
              GlobalManager  gm  = (GlobalManager)comp;
             
              gm.addListener( PluginInitializer.this );
            }
          }
      });
   
    core_operation   = _core_operation;
View Full Code Here

Examples of org.gudy.azureus2.core3.logging.impl.FileLogging.addListener()

  public void addFileLoggingListener(final FileLoggerAdapter listener) {
    FileLogging fileLogging = org.gudy.azureus2.core3.logging.Logger.getFileLoggingInstance();
    if (fileLogging == null)
      return;
   
    fileLogging.addListener(new PluginFileLoggerAdapater(fileLogging, listener));
  }

  public void removeFileLoggingListener(FileLoggerAdapter listener) {
    FileLogging fileLogging = org.gudy.azureus2.core3.logging.Logger.getFileLoggingInstance();
    if (fileLogging == null)
View Full Code Here

Examples of org.gudy.azureus2.core3.torrent.TOTorrent.addListener()

         
          TOTorrent t = getTorrent();

          if ( t != null ){

            t.addListener( tol );
           
            TOTorrentAnnounceURLSet[] sets = t.getAnnounceURLGroup().getAnnounceURLSets();
           
            if ( sets.length == 0 ){
             
View Full Code Here

Examples of org.gudy.azureus2.core3.torrent.TOTorrentCreator.addListener()

    String pieceSizeStr = (String) parameters.get("force_piece_size_pow2");
    if(pieceSizeStr != null) {
      try {    
        long pieceSize = 1l << Integer.parseInt(pieceSizeStr);
        TOTorrentCreator creator = TOTorrentFactory.createFromFileOrDirWithFixedPieceLength(fSrc,url,pieceSize);
        creator.addListener( this );
        torrent = creator.create();
      }catch(Exception e) {
        e.printStackTrace();
        return;
      }
View Full Code Here

Examples of org.gudy.azureus2.core3.tracker.client.TRTrackerAnnouncer.addListener()

      // use a facade here to delay loading the actual torrent until the
      // download is activated
 
    TRTrackerAnnouncer result = TRTrackerAnnouncerFactory.create( torrent_facade, true );
   
    result.addListener(
        new TRTrackerAnnouncerListener()
        {
          public void
          receivedTrackerResponse(
            TRTrackerAnnouncerResponse  response )
View Full Code Here

Examples of org.gudy.azureus2.plugins.PluginInterface.addListener()

  {
    PluginInterface default_pi = PluginInitializer.getDefaultInterface();

    mi_ta = default_pi.getTorrentManager().getPluginAttribute( "sm_metainfo" );
   
    default_pi.addListener(
      new PluginListener()
      {
        public void
        initializationComplete()
        {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.