Examples of OsgiServiceDependencyEvent


Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

  // event notification
  private void sendInitialDependencyEvents() {
    for (Iterator iterator = unsatisfiedDependencies.keySet().iterator(); iterator.hasNext();) {
      MandatoryServiceDependency entry = (MandatoryServiceDependency) iterator.next();
      OsgiServiceDependencyEvent nestedEvent = new OsgiServiceDependencyWaitStartingEvent(context,
        entry.getServiceDependency(), waitTime);
      BootstrappingDependencyEvent dependencyEvent = new BootstrappingDependencyEvent(context,
        context.getBundle(), nestedEvent);
      publishEvent(dependencyEvent);
    }
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

      publishEvent(dependencyEvent);
    }
  }

  private void sendDependencyUnsatisfiedEvent(MandatoryServiceDependency dependency) {
    OsgiServiceDependencyEvent nestedEvent = new OsgiServiceDependencyWaitStartingEvent(context,
      dependency.getServiceDependency(), waitTime);
    BootstrappingDependencyEvent dependencyEvent = new BootstrappingDependencyEvent(context, context.getBundle(),
      nestedEvent);
    publishEvent(dependencyEvent);
  }
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

      nestedEvent);
    publishEvent(dependencyEvent);
  }

  private void sendDependencySatisfiedEvent(MandatoryServiceDependency dependency) {
    OsgiServiceDependencyEvent nestedEvent = new OsgiServiceDependencyWaitEndedEvent(context,
      dependency.getServiceDependency(), waitTime);
    BootstrappingDependencyEvent dependencyEvent = new BootstrappingDependencyEvent(context, context.getBundle(),
      nestedEvent);
    publishEvent(dependencyEvent);
  }
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

        }

        public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
            SpringState state = null;
            if (event instanceof BootstrappingDependencyEvent) {
                OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
                if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                    state = SpringState.Waiting;
                }
            } else if (event instanceof OsgiBundleContextFailedEvent) {
                state = SpringState.Failed;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

        }

        public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
            SpringState state = null;
            if (event instanceof BootstrappingDependencyEvent) {
                OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
                if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                    state = SpringState.Waiting;
                }
            } else if (event instanceof OsgiBundleContextFailedEvent) {
                state = SpringState.Failed;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

    }

    public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
        SpringState state = null;
        if (event instanceof BootstrappingDependencyEvent) {
            OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
            if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                state = SpringState.Waiting;
            }
        } else if (event instanceof OsgiBundleContextFailedEvent) {
            state = SpringState.Failed;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

        }

        public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
            SpringState state = null;
            if (event instanceof BootstrappingDependencyEvent) {
                OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
                if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                    state = SpringState.Waiting;
                }
            } else if (event instanceof OsgiBundleContextFailedEvent) {
                state = SpringState.Failed;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

        }

        public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
            SpringState state = null;
            if (event instanceof BootstrappingDependencyEvent) {
                OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
                if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                    state = SpringState.Waiting;
                }
            } else if (event instanceof OsgiBundleContextFailedEvent) {
                state = SpringState.Failed;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

            updateBundle(bundleId, moduleStatus);
        }

        private ModuleStatus toModuleStatus(OsgiBundleApplicationContextEvent event) {
            if (event instanceof BootstrappingDependencyEvent) {
                OsgiServiceDependencyEvent de = ((BootstrappingDependencyEvent) event).getDependencyEvent();
                if (de instanceof OsgiServiceDependencyWaitStartingEvent) {
                    return ModuleStatus.WAITING;
                }
            } else if (event instanceof OsgiBundleContextFailedEvent) {
                return ModuleStatus.FAILED;
View Full Code Here

Examples of org.springframework.osgi.service.importer.event.OsgiServiceDependencyEvent

  // event notification
  private void sendInitialDependencyEvents() {
    for (Iterator iterator = unsatisfiedDependencies.keySet().iterator(); iterator.hasNext();) {
      MandatoryServiceDependency entry = (MandatoryServiceDependency) iterator.next();
      OsgiServiceDependencyEvent nestedEvent = new OsgiServiceDependencyWaitStartingEvent(context,
        entry.getServiceDependency(), waitTime);
      BootstrappingDependencyEvent dependencyEvent = new BootstrappingDependencyEvent(context,
        context.getBundle(), nestedEvent);
      publishEvent(dependencyEvent);
    }
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.