00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 package org.osgi.framework;
00020
00021 import java.util.EventObject;
00022
00038 public class ServiceEvent extends EventObject {
00039 static final long serialVersionUID = 8792901483909409299L;
00043 private ServiceReference reference;
00044
00048 private int type;
00049
00061 public final static int REGISTERED = 0x00000001;
00062
00074 public final static int MODIFIED = 0x00000002;
00075
00095 public final static int UNREGISTERING = 0x00000004;
00096
00104 public ServiceEvent(int type, ServiceReference reference) {
00105 super(reference);
00106 this.reference = reference;
00107 this.type = type;
00108 }
00109
00118 public ServiceReference getServiceReference() {
00119 return reference;
00120 }
00121
00133 public int getType() {
00134 return type;
00135 }
00136 }