org.springframework.osgi.blueprint.container.support
Class BlueprintContainerServicePublisher

java.lang.Object
  extended by org.springframework.osgi.blueprint.container.support.BlueprintContainerServicePublisher
All Implemented Interfaces:
EventListener, ApplicationListener<ApplicationContextEvent>

public class BlueprintContainerServicePublisher
extends Object
implements ApplicationListener<ApplicationContextEvent>

Infrastructure bean that automatically publishes the given ModuleContext as an OSGi service. The bean listens for the start/stop events inside an ApplicationContext to register/unregister the equivalent service. Note: This component is stateful and should not be shared by multiple threads.

Author:
Costin Leau

Constructor Summary
BlueprintContainerServicePublisher(BlueprintContainer blueprintContainer, BundleContext bundleContext)
          Constructs a new ModuleContextServicePublisher instance.
 
Method Summary
 void onApplicationEvent(ApplicationContextEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlueprintContainerServicePublisher

public BlueprintContainerServicePublisher(BlueprintContainer blueprintContainer,
                                          BundleContext bundleContext)
Constructs a new ModuleContextServicePublisher instance.

Parameters:
blueprintContainer -
bundleContext -
Method Detail

onApplicationEvent

public void onApplicationEvent(ApplicationContextEvent event)
Specified by:
onApplicationEvent in interface ApplicationListener<ApplicationContextEvent>


Copyright © 2006-2011 Spring Framework. All Rights Reserved.