Activator.java

00001 package org.openmobileis.oscar;
00002 
00003 import org.openmobileis.common.util.PropertiesManager;
00004 import org.openmobileis.common.util.log.LogManager;
00005 import org.openmobileis.oscar.bundlemanager.OscarBundleManager;
00006 import org.osgi.framework.BundleActivator;
00007 import org.osgi.framework.BundleContext;
00008 
00009 public class Activator implements BundleActivator {
00010 
00011         public void start(BundleContext context) throws Exception {
00012 /*        context.registerService(
00013             OscarBundleUtils.class.getName(), new OscarBundleUtils(context), null);*/
00014                 
00015                 // Init the Log Manager with null.
00016                 if (LogManager.getInstance() == null) {
00017                         LogManager.registerLogManager(null);
00018                 }
00019                         
00020                 OscarBundleManager.setContext(context);
00021                 
00022                 OscarBundleManager.getManager().startBundles();
00023                 
00024         }
00025 
00026         public void stop(BundleContext context) throws Exception {
00027         // NOTE: The service is automatically unregistered.
00028         }
00029 
00030 }

Generated on Mon Dec 4 11:03:25 2006 for OpenMobileIS by  doxygen 1.5.1-p1