1 18 19 package org.osgi.framework; 20 21 import java.util.EventObject ; 22 23 39 40 public class ServiceEvent extends EventObject { 41 static final long serialVersionUID = 8792901483909409299L; 42 45 private final ServiceReference reference; 46 47 50 private final int type; 51 52 63 public final static int REGISTERED = 0x00000001; 64 65 76 public final static int MODIFIED = 0x00000002; 77 78 97 public final static int UNREGISTERING = 0x00000004; 98 99 106 public ServiceEvent(int type, ServiceReference reference) { 107 super(reference); 108 this.reference = reference; 109 this.type = type; 110 } 111 112 120 public ServiceReference getServiceReference() { 121 return reference; 122 } 123 124 134 135 public int getType() { 136 return type; 137 } 138 } 139 | Popular Tags |