Examples of OsgiBundleApplicationContextListener


Examples of org.springframework.osgi.context.event.OsgiBundleApplicationContextListener


  protected void onSetUp() throws Exception {
    eventList.clear();

    listener = new OsgiBundleApplicationContextListener() {

      public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
        eventList.add(event);
        synchronized (lock) {
          lock.notify();
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleApplicationContextListener

  }

  public void testEventsForCtxThatWork() throws Exception {

    listener = new OsgiBundleApplicationContextListener() {

      public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
        if (event instanceof OsgiBundleContextRefreshedEvent) {
          eventList.add(event);
          synchronized (lock) {
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleApplicationContextListener

    }
  }

  public void testEventsForCtxThatFail() throws Exception {

    listener = new OsgiBundleApplicationContextListener() {

      public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
        if (event instanceof OsgiBundleContextFailedEvent) {
          eventList.add(event);
          synchronized (lock) {
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleApplicationContextListener

  protected void onSetUp() throws Exception {
    refreshEvents.clear();

    // override the listener with another implementation that waits until the appCtx are fully started
    listener = new OsgiBundleApplicationContextListener() {

      public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
        System.out.println("receiving event " + event.getClass());
        if (event instanceof BootstrappingDependencyEvent) {
          eventList.add(event);
View Full Code Here

Examples of org.springframework.osgi.context.event.OsgiBundleApplicationContextListener

    this.listeners = listeners;
  }

  public void onOsgiApplicationEvent(OsgiBundleApplicationContextEvent event) {
    for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
      OsgiBundleApplicationContextListener osgiListener = (OsgiBundleApplicationContextListener) iterator.next();
      osgiListener.onOsgiApplicationEvent(event);
    }
  }
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.