org.sonatype.guice.bean.containers
Class SisuActivator

java.lang.Object
  extended by org.sonatype.guice.bean.containers.SisuActivator
All Implemented Interfaces:
org.osgi.framework.BundleActivator, org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.util.tracker.ServiceTrackerCustomizer

public final class SisuActivator
extends Object
implements org.osgi.framework.BundleActivator, org.osgi.util.tracker.BundleTrackerCustomizer, org.osgi.util.tracker.ServiceTrackerCustomizer

BundleActivator that maintains a dynamic Injector graph by scanning bundles as they come and go.


Constructor Summary
SisuActivator()
           
 
Method Summary
 Object addingBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event)
           
 Object addingService(org.osgi.framework.ServiceReference reference)
           
 void modifiedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
           
 void modifiedService(org.osgi.framework.ServiceReference reference, Object service)
           
 void removedBundle(org.osgi.framework.Bundle bundle, org.osgi.framework.BundleEvent event, Object object)
           
 void removedService(org.osgi.framework.ServiceReference reference, Object service)
           
 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

SisuActivator

public SisuActivator()
Method Detail

start

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

stop

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

addingBundle

public Object addingBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event)
Specified by:
addingBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer

modifiedBundle

public void modifiedBundle(org.osgi.framework.Bundle bundle,
                           org.osgi.framework.BundleEvent event,
                           Object object)
Specified by:
modifiedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer

removedBundle

public void removedBundle(org.osgi.framework.Bundle bundle,
                          org.osgi.framework.BundleEvent event,
                          Object object)
Specified by:
removedBundle in interface org.osgi.util.tracker.BundleTrackerCustomizer

addingService

public Object addingService(org.osgi.framework.ServiceReference reference)
Specified by:
addingService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

modifiedService

public void modifiedService(org.osgi.framework.ServiceReference reference,
                            Object service)
Specified by:
modifiedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer

removedService

public void removedService(org.osgi.framework.ServiceReference reference,
                           Object service)
Specified by:
removedService in interface org.osgi.util.tracker.ServiceTrackerCustomizer


Copyright © 2010-2012 Sonatype, Inc.. All Rights Reserved.