KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > kernel > state > StateChangeEvent


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Distributable under LGPL license. *
6  * See terms of license at gnu.org. *
7  * *
8  *****************************************/

9 package org.jboss.portal.server.kernel.state;
10
11 import org.jboss.portal.server.kernel.KernelEvent;
12 import org.jboss.portal.server.kernel.ServiceImplementation;
13
14 /**
15  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
16  * @version $Revision: 1.1.1.1 $
17  */

18 public class StateChangeEvent extends KernelEvent
19 {
20
21    private State oldState;
22    private State newState;
23    private ServiceImplementation implementation;
24
25    public StateChangeEvent(Object JavaDoc source, State oldState, State newState, ServiceImplementation implementation)
26    {
27       super(source);
28       this.oldState = oldState;
29       this.newState = newState;
30       this.implementation = implementation;
31    }
32
33    public State getOldState()
34    {
35       return oldState;
36    }
37
38    public State getNewState()
39    {
40       return newState;
41    }
42
43    public ServiceImplementation getImplementation()
44    {
45       return implementation;
46    }
47 }
48
Popular Tags