org.jvnet.hk2.osgiadapter
Class ServiceLocatorActivator

java.lang.Object
  extended by org.jvnet.hk2.osgiadapter.ServiceLocatorActivator
All Implemented Interfaces:
EventListener, org.osgi.framework.BundleActivator, org.osgi.framework.BundleListener, org.osgi.framework.SynchronousBundleListener

public class ServiceLocatorActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.framework.SynchronousBundleListener

BundleActivator that launches a ServiceLocator. Responsible for registering bundles containing descriptors in the ServiceLocator.

Author:
mason.taube@oracle.com

Constructor Summary
ServiceLocatorActivator()
           
 
Method Summary
 void bundleChanged(org.osgi.framework.BundleEvent event)
           
 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

ServiceLocatorActivator

public ServiceLocatorActivator()
Method Detail

start

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

stop

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

bundleChanged

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


Copyright © 2012 Oracle Corporation. All Rights Reserved.