1 18 package org.osgi.service.wireadmin; 19 20 import org.osgi.framework.ServiceReference; 21 22 61 public class WireAdminEvent { 62 65 private ServiceReference reference; 66 69 private Wire wire; 70 75 private int type; 76 79 private Throwable throwable; 80 91 public final static int PRODUCER_EXCEPTION = 0x00000001; 92 103 public final static int CONSUMER_EXCEPTION = 0x00000002; 104 118 public final static int WIRE_CREATED = 0x00000004; 119 133 public final static int WIRE_UPDATED = 0x00000008; 134 148 public final static int WIRE_DELETED = 0x00000010; 149 166 public final static int WIRE_CONNECTED = 0x00000020; 167 178 public final static int WIRE_DISCONNECTED = 0x00000040; 179 194 public final static int WIRE_TRACE = 0x00000080; 195 196 208 public WireAdminEvent(ServiceReference reference, int type, Wire wire, 209 Throwable exception) { 210 this.reference = reference; 211 this.wire = wire; 212 this.type = type; 213 this.throwable = exception; 214 } 215 216 223 public ServiceReference getServiceReference() { 224 return reference; 225 } 226 227 234 public Wire getWire() { 235 return wire; 236 } 237 238 255 public int getType() { 256 return type; 257 } 258 259 265 public Throwable getThrowable() { 266 return throwable; 267 } 268 } 269 | Popular Tags |