Package org.springframework.context.event

Examples of org.springframework.context.event.ApplicationEventMulticaster


    Object o = BeanUtils.instantiateClass(editorClass);
    Assert.isTrue((o instanceof Editor), "Editor class '"+
      editorClass + "' was instantiated but is not an Editor");
    Editor editor = (Editor)o;
    editor.setDescriptor(this);
    ApplicationEventMulticaster multicaster = getApplicationEventMulticaster();
    if(editor instanceof ApplicationListener &&  multicaster != null){
      multicaster.addApplicationListener((ApplicationListener)editor);
    }
    if(editorProperties != null){
      BeanWrapper wrapper = new BeanWrapperImpl(editor);
      wrapper.setPropertyValues(editorProperties);
    }
View Full Code Here


  public long getStartupDate() {
    return startup_timestamp;
  }

  public void publishEvent(ApplicationEvent event) {
    final ApplicationEventMulticaster multicaster = getApplicationEventMulticaster();
    multicaster.multicastEvent(event);
    if(parent_publisher!=null)
      parent_publisher.publishEvent(event);
  }
View Full Code Here

    }

    @Override
    public void postProcessBeforeDestruction(Object bean, String beanName) {
      if (bean instanceof ApplicationListener) {
        ApplicationEventMulticaster multicaster = this.applicationContext.getApplicationEventMulticaster();
        multicaster.removeApplicationListener((ApplicationListener<?>) bean);
        multicaster.removeApplicationListenerBean(beanName);
      }
    }
View Full Code Here

TOP

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

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.