BundleEvent.java

00001 /*
00002  * $Header: /cvshome/build/org.osgi.framework/src/org/osgi/framework/BundleEvent.java,v 1.15 2006/06/16 16:31:18 hargrave Exp $
00003  * 
00004  * Copyright (c) OSGi Alliance (2000, 2006). All Rights Reserved.
00005  * 
00006  * Licensed under the Apache License, Version 2.0 (the "License");
00007  * you may not use this file except in compliance with the License.
00008  * You may obtain a copy of the License at
00009  *
00010  *      http://www.apache.org/licenses/LICENSE-2.0
00011  *
00012  * Unless required by applicable law or agreed to in writing, software
00013  * distributed under the License is distributed on an "AS IS" BASIS,
00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  * See the License for the specific language governing permissions and
00016  * limitations under the License.
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 }

Generated on Mon Jan 11 21:19:13 2010 for OpenMobileIS by  doxygen 1.5.4