KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > spring > bean > SingletonEvent


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tctest.spring.bean;
5
6 import org.springframework.context.ApplicationEvent;
7
8 public abstract class SingletonEvent extends ApplicationEvent {
9   private final String JavaDoc message;
10
11   public SingletonEvent(Object JavaDoc source, String JavaDoc message) {
12     super(source);
13     this.message = message;
14   }
15
16   public String JavaDoc toString() {
17     return message + " " + source;
18   }
19 }
Popular Tags