com.atlassian.plugin.osgi.spring
Class PluginBridgeEventMulticaster

java.lang.Object
  extended by org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter
      extended by com.atlassian.plugin.osgi.spring.PluginBridgeEventMulticaster
All Implemented Interfaces:
org.springframework.osgi.context.BundleContextAware, org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticaster

public class PluginBridgeEventMulticaster
extends org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter
implements org.springframework.osgi.context.BundleContextAware

Finds ApplicationListener bridge and uses it to CC all event broadcasts

Since:
2.2.1

Constructor Summary
PluginBridgeEventMulticaster()
           
 
Method Summary
 void multicastEvent(org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent applicationEvent)
           
 void setBundleContext(org.osgi.framework.BundleContext bundleContext)
          Look for the application listener bridge from atlassian-plugins-osgi-bridge.
 
Methods inherited from class org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter
addApplicationListener, removeAllListeners, removeApplicationListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginBridgeEventMulticaster

public PluginBridgeEventMulticaster()
Method Detail

multicastEvent

public void multicastEvent(org.springframework.osgi.context.event.OsgiBundleApplicationContextEvent applicationEvent)
Specified by:
multicastEvent in interface org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticaster
Overrides:
multicastEvent in class org.springframework.osgi.context.event.OsgiBundleApplicationContextEventMulticasterAdapter

setBundleContext

public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
Look for the application listener bridge from atlassian-plugins-osgi-bridge. Can't use Spring DM stuff as it creates a circular dependency.

Specified by:
setBundleContext in interface org.springframework.osgi.context.BundleContextAware
Parameters:
bundleContext - The bundle context for Spring DM extender


Copyright © 2013 Atlassian. All Rights Reserved.