livespace.osgi.bootstrap
Class Activator

java.lang.Object
  extended by livespace.osgi.bootstrap.Activator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.FrameworkListener

public class Activator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.FrameworkListener, org.osgi.framework.BundleListener

The Livespace bootstrap service activator. This continues what was started by Main, loading and starting the bundles for this host.

Optional system properties (in addition to those required by Main):

   livespace.osgi.bundle_version The default bundle version for bundles that
   don't have this set explicity. Main sets this by default, loading it from
   config/livespace.properties.
   
   livespace.osgi.bundle_path: URL to bundle base of bundle repository.
   This is automatically set by Main based on livespace.osgi.path if not
   already defined.
   
   livespace.osgi.start_level: override the start level set by the deploy
   config.
   
   livespace.host.category: Can be used to locally override the category
   assigned by the hosts.category_map files.
 

Author:
Matthew Phillips
See Also:
DeployMapConfig, DeployConfig

Constructor Summary
Activator()
           
 
Method Summary
protected static void abortBootstrap(org.osgi.framework.BundleContext context, Throwable error)
           
 void bundleChanged(org.osgi.framework.BundleEvent e)
           
protected  void diagnostic(String message)
           
protected static void error(String message, Throwable ex)
           
 void frameworkEvent(org.osgi.framework.FrameworkEvent e)
           
protected  void info(String message)
           
 void start(org.osgi.framework.BundleContext context)
           
 void stop(org.osgi.framework.BundleContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Activator

public Activator()
Method Detail

start

public void start(org.osgi.framework.BundleContext context)
           throws Exception
Specified by:
start in interface org.osgi.framework.BundleActivator
Throws:
Exception

abortBootstrap

protected static void abortBootstrap(org.osgi.framework.BundleContext context,
                                     Throwable error)

stop

public void stop(org.osgi.framework.BundleContext context)
          throws Exception
Specified by:
stop in interface org.osgi.framework.BundleActivator
Throws:
Exception

frameworkEvent

public void frameworkEvent(org.osgi.framework.FrameworkEvent e)
Specified by:
frameworkEvent in interface org.osgi.framework.FrameworkListener

bundleChanged

public void bundleChanged(org.osgi.framework.BundleEvent e)
Specified by:
bundleChanged in interface org.osgi.framework.BundleListener

diagnostic

protected void diagnostic(String message)

info

protected void info(String message)

error

protected static void error(String message,
                            Throwable ex)


Copyright © 2008 Commonwealth of Australia