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.extender.internal.blueprint.activator
Class BlueprintLoaderListener

    java.lang.Object
      org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener
          org.eclipse.gemini.blueprint.extender.internal.blueprint.activator.BlueprintLoaderListener

All Implemented Interfaces:
  org.osgi.framework.BundleActivator

    public class BlueprintLoaderListener

extends ContextLoaderListener

RFC124 extension to the Spring DM extender.

Author:
  Costin Leau

Field Summary

Fields inherited from class org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener
`log`

Constructor Summary
`BlueprintLoaderListener(ExtenderConfiguration extenderConfiguration, ListenerServiceActivator listenerServiceActivator)`

Method Summary
`protected ApplicationContextConfigurationFactory` | `createContextConfigFactory()`
`protected OsgiContextProcessor` | `createContextProcessor()`
`protected String` | `getManagedBundleExtenderVersionHeader()`
`protected OsgiApplicationContextCreator` | `getOsgiApplicationContextCreator()` Always use the `BlueprintContainerCreator`, never the configured creator.
`protected TypeCompatibilityChecker` | `getTypeCompatibilityChecker()`
`void` | `start(org.osgi.framework.BundleContext context)` Called by OSGi when this bundle is started.
`void` | `stop(org.osgi.framework.BundleContext context)` Called by OSGi when this bundled is stopped.

Methods inherited from class org.eclipse.gemini.blueprint.extender.internal.activator.ContextLoaderListener
`createDefaultOsgiApplicationContextCreator, getVersionMatcher, initStartedBundles, shutdown`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### BlueprintLoaderListener

    public BlueprintLoaderListener(ExtenderConfiguration extenderConfiguration,
                                   ListenerServiceActivator listenerServiceActivator)

Method Detail

### start

    public void start(org.osgi.framework.BundleContext context)
               throws Exception

  Description copied from class: `ContextLoaderListener`

  Called by OSGi when this bundle is started. Finds all previously resolved bundles and adds namespace handlers for them if necessary.

  Creates application contexts for bundles started before the extender was started.

  Registers a namespace/entity resolving service for use by web app contexts.

  Specified by:
    `start` in interface `org.osgi.framework.BundleActivator`
  Overrides:
    `start` in class `ContextLoaderListener`
  Throws:
    `Exception`
  See Also:
    `BundleActivator.start(org.osgi.framework.BundleContext)`

### stop

    public void stop(org.osgi.framework.BundleContext context)
              throws Exception

  Description copied from class: `ContextLoaderListener`
  Called by OSGi when this bundled is stopped. Unregister the namespace/entity resolving service and clear all state. No further management of application contexts created by this extender prior to stopping the bundle occurs after this point (even if the extender bundle is subsequently restarted).

  Specified by:
    `stop` in interface `org.osgi.framework.BundleActivator`
  Overrides:
    `stop` in class `ContextLoaderListener`
  Throws:
    `Exception`
  See Also:
    `BundleActivator.stop(org.osgi.framework.BundleContext)`

### createContextConfigFactory

    protected ApplicationContextConfigurationFactory createContextConfigFactory()

  Overrides:
    `createContextConfigFactory` in class `ContextLoaderListener`

### getOsgiApplicationContextCreator

    protected OsgiApplicationContextCreator getOsgiApplicationContextCreator()

  Always use the `BlueprintContainerCreator`, never the configured creator. Rationale: Backwards compatibility. Both DM and Blueprint extenders are available simultaneously, however Blueprint extender support is new and must not be broken by existing configurations. Otherwise, existing users would have to make their creators aware of the difference between blueprint and dm containers.

  Overrides:
    `getOsgiApplicationContextCreator` in class `ContextLoaderListener`

### createContextProcessor

    protected OsgiContextProcessor createContextProcessor()

  Overrides:
    `createContextProcessor` in class `ContextLoaderListener`

### getTypeCompatibilityChecker

    protected TypeCompatibilityChecker getTypeCompatibilityChecker()

  Overrides:
    `getTypeCompatibilityChecker` in class `ContextLoaderListener`

### getManagedBundleExtenderVersionHeader

    protected String getManagedBundleExtenderVersionHeader()

  Overrides:
    `getManagedBundleExtenderVersionHeader` in class `ContextLoaderListener`

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-2013. All Rights Reserved.