KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > server > kernel > RegistrationEvent


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;
10
11 /**
12  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
13  * @version $Revision: 1.1.1.1 $
14  */

15 public class RegistrationEvent extends KernelEvent
16 {
17
18    public static final int REGISTERED = 0;
19    public static final int UNREGISTERED = 1;
20
21    private int type;
22    private ServiceImplementation implementation;
23
24    public RegistrationEvent(Object JavaDoc source, int type, ServiceImplementation implementation)
25    {
26       super(source);
27       this.type = type;
28       this.implementation = implementation;
29    }
30
31    public int getType()
32    {
33       return type;
34    }
35
36    public ServiceImplementation getImplementation()
37    {
38       return implementation;
39    }
40 }
41
Popular Tags