Examples of StartupMonitor


Examples of org.apache.geronimo.system.main.StartupMonitor

    private ServiceRegistration kernelRegistration;
    private BundleActivator configurationActivator;

    public void start(BundleContext bundleContext) throws Exception {
        if (bundleContext.getServiceReference(Kernel.class.getName()) == null) {
            StartupMonitor monitor = new LongStartupMonitor();
            monitor.systemStarting(System.currentTimeMillis());
            Kernel kernel = KernelFactory.newInstance(bundleContext).createKernel("geronimo");
            kernel.boot();
            monitor.systemStarted(kernel);
            Dictionary dictionary = null;//new Hashtable();
            kernelRegistration = bundleContext.registerService(Kernel.class.getName(), kernel, dictionary);
            //boot the root configuration
            Bundle bundle = bundleContext.getBundle();
            URL plan = bundle.getEntry("META-INF/config.ser");
View Full Code Here

Examples of org.apache.geronimo.system.main.StartupMonitor

    private ServiceRegistration kernelRegistration;
    private BundleActivator configurationActivator;

    public void start(BundleContext bundleContext) throws Exception {
        if (bundleContext.getServiceReference(Kernel.class.getName()) == null) {
            StartupMonitor monitor = new LongStartupMonitor();
            monitor.systemStarting(System.currentTimeMillis());
            Kernel kernel = KernelFactory.newInstance(bundleContext).createKernel("geronimo");
            kernel.boot();
            monitor.systemStarted(kernel);
            Dictionary dictionary = null;//new Hashtable();
            kernelRegistration = bundleContext.registerService(Kernel.class.getName(), kernel, dictionary);
            //boot the root configuration
            Bundle bundle = bundleContext.getBundle();
            URL plan = bundle.getEntry("META-INF/config.ser");
View Full Code Here

Examples of org.apache.geronimo.system.main.StartupMonitor

    private ServiceRegistration kernelRegistration;
    private BundleActivator configurationActivator;

    public void start(BundleContext bundleContext) throws Exception {
        if (bundleContext.getServiceReference(Kernel.class.getName()) == null) {
            StartupMonitor monitor = new LongStartupMonitor();
            monitor.systemStarting(System.currentTimeMillis());
            Kernel kernel = KernelFactory.newInstance(bundleContext).createKernel("geronimo");
            kernel.boot();
            monitor.systemStarted(kernel);
            Dictionary dictionary = null;//new Hashtable();
            kernelRegistration = bundleContext.registerService(Kernel.class.getName(), kernel, dictionary);
            //boot the root configuration
            Bundle bundle = bundleContext.getBundle();
            URL plan = bundle.getEntry("META-INF/config.ser");
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.StartupMonitor

  private static void updateSplash(Semaphore semaphore, StartupEventListener listener) {
    ServiceTracker monitorTracker = new ServiceTracker(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = (StartupMonitor) monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.StartupMonitor

  private static void updateSplash(Semaphore semaphore, StartupEventListener listener) {
    ServiceTracker<StartupMonitor, StartupMonitor> monitorTracker = new ServiceTracker<StartupMonitor, StartupMonitor>(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.StartupMonitor

  private static void updateSplash(Semaphore semaphore, FrameworkListener listener) {
    ServiceTracker monitorTracker = new ServiceTracker(context, StartupMonitor.class.getName(), null);
    monitorTracker.open();
    try {
      while (true) {
        StartupMonitor monitor = (StartupMonitor) monitorTracker.getService();
        if (monitor != null) {
          try {
            monitor.update();
          } catch (Throwable e) {
            // ignore exceptions thrown by the monitor
          }
        }
        // can we acquire the semaphore yet?
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.StartupMonitor

        Dictionary properties = new Hashtable();
        properties.put(Constants.SERVICE_RANKING, new Integer(Integer.MAX_VALUE));
        BundleContext context = WorkbenchPlugin.getDefault().getBundleContext();
        final ServiceRegistration registration[] = new ServiceRegistration[1];
        StartupMonitor startupMonitor = new StartupMonitor() {

          public void applicationRunning() {
            splash.dispose();
            if (background != null)
              background.dispose();
View Full Code Here

Examples of org.eclipse.osgi.service.runnable.StartupMonitor

        // handleException(ISafeRunnable)
      }

      public void run() throws Exception {
        for (int i = 0; i < monitors.length; i++) {
          StartupMonitor monitor = (StartupMonitor) Activator.getContext().getService(monitors[i]);
          if (monitor != null) {
            monitor.applicationRunning();
            Activator.getContext().ungetService(monitors[i]);
          }
        }
      }
    });
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.