MultiEventHandler.java :  » UnTagged » recordcenter » org » springexample » beanconfig » publish » multhandler » Android Open Source

Android Open Source » UnTagged » recordcenter 
recordcenter » org » springexample » beanconfig » publish » multhandler » MultiEventHandler.java
package org.springexample.beanconfig.publish.multhandler;

import org.springframework.context.ApplicationListener;

public class MultiEventHandler implements ApplicationListener<MultiEvent> {
     
  private String description;
  
  
   
  /**
   * @return the description
   */
  public String getDescription() {
    return description;
  }



  /**
   * @param description the description to set
   */
  public void setDescription(String description) {
    this.description = description;
  }



  public void onApplicationEvent(MultiEvent event) {
  
    System.out.println("it's "+this.description);
    long thread_id = Thread.currentThread().getId();
    System.out.println("handler thread id:"+thread_id);
        System.out.println(this);
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.