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
00037 public class BundleEvent extends EventObject {
00038 static final long serialVersionUID = 4080640865971756012L;
00042 private Bundle bundle;
00043
00047 private int type;
00048
00056 public final static int INSTALLED = 0x00000001;
00057
00065 public final static int STARTED = 0x00000002;
00066
00074 public final static int STOPPED = 0x00000004;
00075
00083 public final static int UPDATED = 0x00000008;
00084
00092 public final static int UNINSTALLED = 0x00000010;
00093
00102 public final static int RESOLVED = 0x00000020;
00103
00112 public final static int UNRESOLVED = 0x00000040;
00113
00122 public final static int STARTING = 0x00000080;
00123
00132 public final static int STOPPING = 0x00000100;
00133
00141 public BundleEvent(int type, Bundle bundle) {
00142 super(bundle);
00143 this.bundle = bundle;
00144 this.type = type;
00145 }
00146
00153 public Bundle getBundle() {
00154 return bundle;
00155 }
00156
00174 public int getType() {
00175 return type;
00176 }
00177 }