1 18 19 package org.osgi.framework; 20 21 import java.util.EventObject ; 22 23 39 40 public class BundleEvent extends EventObject { 41 static final long serialVersionUID = 4080640865971756012L; 42 45 private final Bundle bundle; 46 47 50 private final int type; 51 52 59 public final static int INSTALLED = 0x00000001; 60 61 72 public final static int STARTED = 0x00000002; 73 74 85 public final static int STOPPED = 0x00000004; 86 87 94 public final static int UPDATED = 0x00000008; 95 96 103 public final static int UNINSTALLED = 0x00000010; 104 105 113 public final static int RESOLVED = 0x00000020; 114 115 123 public final static int UNRESOLVED = 0x00000040; 124 125 139 public final static int STARTING = 0x00000080; 140 141 155 public final static int STOPPING = 0x00000100; 156 157 171 public final static int LAZY_ACTIVATION = 0x00000200; 172 173 179 180 public BundleEvent(int type, Bundle bundle) { 181 super(bundle); 182 this.bundle = bundle; 183 this.type = type; 184 } 185 186 192 public Bundle getBundle() { 193 return bundle; 194 } 195 196 213 214 public int getType() { 215 return type; 216 } 217 } 218 | Popular Tags |