Package org.springframework.context.event

Examples of org.springframework.context.event.ContextStoppedEvent


    publishEvent(new ContextStartedEvent(this));
  }

  public void stop() {
    getLifecycleProcessor().stop();
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here


    publishEvent(new ContextStartedEvent(this));
  }

  public void stop() {
    getLifecycleProcessor().stop();
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    Map lifecycleBeans = getLifecycleBeans();
    for (Iterator it = new HashSet(lifecycleBeans.keySet()).iterator(); it.hasNext();) {
      String beanName = (String) it.next();
      doStop(lifecycleBeans, beanName);
    }
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    Map lifecycleBeans = getLifecycleBeans();
    for (Iterator it = new LinkedHashSet(lifecycleBeans.keySet()).iterator(); it.hasNext();) {
      String beanName = (String) it.next();
      doStop(lifecycleBeans, beanName);
    }
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    Map lifecycleBeans = getLifecycleBeans();
    for (Iterator it = new LinkedHashSet(lifecycleBeans.keySet()).iterator(); it.hasNext();) {
      String beanName = (String) it.next();
      doStop(lifecycleBeans, beanName);
    }
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

  }

  @Override
  public void stop() {
    getLifecycleProcessor().stop();
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    publishEvent(new ContextStartedEvent(this));
  }

  public void stop() {
    getLifecycleProcessor().stop();
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    publishEvent(new ContextStartedEvent(this));
  }

  public void stop() {
    getLifecycleProcessor().stop();
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

    Map lifecycleBeans = getLifecycleBeans();
    for (Iterator it = new LinkedHashSet(lifecycleBeans.keySet()).iterator(); it.hasNext();) {
      String beanName = (String) it.next();
      doStop(lifecycleBeans, beanName);
    }
    publishEvent(new ContextStoppedEvent(this));
  }
View Full Code Here

      assertNotifiedWithEvent(testApplicationListenerTwo, testContextRefreshedEvent);
      assertUnnotified(testApplicationListenerOne);
      assertUnnotified(testApplicationListenerThree);

      ContextStoppedEvent contextStoppedEvent = new ContextStoppedEvent(mockApplicationContext);

      initializer.onApplicationEvent(contextStoppedEvent);

      assertUnnotified(testApplicationListenerOne);
      assertUnnotified(testApplicationListenerTwo);
View Full Code Here

TOP

Related Classes of org.springframework.context.event.ContextStoppedEvent

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.