Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.gemini.blueprint.blueprint.container.support
Class BlueprintContainerServicePublisher

    java.lang.Object
      org.eclipse.gemini.blueprint.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>`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2011. All Rights Reserved.