org.springframework.osgi.blueprint.container.support
Class BlueprintContainerServicePublisher
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BlueprintContainerServicePublisher
public BlueprintContainerServicePublisher(BlueprintContainer blueprintContainer,
BundleContext bundleContext)
- Constructs a new
ModuleContextServicePublisher
instance.
- Parameters:
blueprintContainer
- bundleContext
-
onApplicationEvent
public void onApplicationEvent(ApplicationContextEvent event)
- Specified by:
onApplicationEvent
in interface ApplicationListener<ApplicationContextEvent>
Copyright © 2006-2011 Spring Framework. All Rights Reserved.