Package org.jmule.core

Examples of org.jmule.core.JMuleCore


      SetupWizard setup_wizard;

      JMuleCoreFactory.create();

      JMuleCore _core = JMuleCoreFactory.getSingleton();

      JMuleCoreLifecycleAdapter core_lifecycle_listener = new JMuleCoreLifecycleAdapter() {

        public void componentStarted(JMuleCoreComponent component) {

          if (component instanceof ConfigurationManager)
            splash.increaseProgress(10, "Config manager started");
          else if (component instanceof SharingManager)
            splash.increaseProgress(10, "Sharing manager started");
          else if (component instanceof UploadManager)
            splash.increaseProgress(10, "Upload manager started");
          else if (component instanceof PeerManager)
            splash.increaseProgress(10, "Peer manager started");
          else if (component instanceof DownloadManager)
            splash.increaseProgress(10, "Download manager started");
          else if (component instanceof ServerManager)
            splash.increaseProgress(10, "Server manager started");

        }

      };

      _core.addLifecycleListener(core_lifecycle_listener);

      _core.start();

      splash.increaseProgress(10, "JMule core started");

      _core.removeLifecycleListener(core_lifecycle_listener);

      boolean is_core_first_run = _core.isFirstRun();

      if (!is_core_first_run) {

        splash.increaseProgress(5, "Starting JMule UI manager");
View Full Code Here


    getCoreComponents();
    initUIComponents();
  }
 
  public void getCoreComponents() {
    JMuleCore core = JMuleCoreFactory.getSingleton();
    sharing_manager  = core.getSharingManager();
    download_manager = core.getDownloadManager();
    server_manager   = core.getServerManager();
    config_manager   = core.getConfigurationManager();
  }
View Full Code Here

TOP

Related Classes of org.jmule.core.JMuleCore

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.