public class BlueprintContainerServicePublisher
extends java.lang.Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>
ApplicationContext to register/unregister the equivalent service.
Note: This component is stateful and should not be shared by multiple threads.| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
BLUEPRINT_SYMNAME |
private static java.lang.String |
BLUEPRINT_VERSION |
private BlueprintContainer |
blueprintContainer |
private org.osgi.framework.BundleContext |
bundleContext |
private static org.apache.commons.logging.Log |
log
logger
|
private org.osgi.framework.ServiceRegistration |
registration
registration
|
| Constructor and Description |
|---|
BlueprintContainerServicePublisher(BlueprintContainer blueprintContainer,
org.osgi.framework.BundleContext bundleContext)
Constructs a new
ModuleContextServicePublisher instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event) |
private void |
registerService(org.springframework.context.ApplicationContext applicationContext) |
private void |
unregisterService() |
private static final org.apache.commons.logging.Log log
private static final java.lang.String BLUEPRINT_SYMNAME
private static final java.lang.String BLUEPRINT_VERSION
private final BlueprintContainer blueprintContainer
private final org.osgi.framework.BundleContext bundleContext
private volatile org.osgi.framework.ServiceRegistration registration
public BlueprintContainerServicePublisher(BlueprintContainer blueprintContainer, org.osgi.framework.BundleContext bundleContext)
ModuleContextServicePublisher instance.blueprintContainer - bundleContext - public void onApplicationEvent(org.springframework.context.event.ApplicationContextEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ApplicationContextEvent>private void registerService(org.springframework.context.ApplicationContext applicationContext)
private void unregisterService()