Examples of ApplicationEventMulticaster


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

Examples of org.springframework.context.event.ApplicationEventMulticaster

  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

Examples of org.springframework.context.event.ApplicationEventMulticaster

    }

    @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
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.