public class

SisuExtender

extends Object
implements BundleActivator
java.lang.Object
   ↳ org.eclipse.sisu.launch.SisuExtender

Class Overview

Basic OSGi extender for Sisu that watches for JSR330 bundles and publishes them to the BeanLocator.
To activate install org.eclipse.sisu.inject.extender, or adapt it for your own extender bundle.

Summary

Public Constructors
SisuExtender()
Public Methods
final MutableBeanLocator findLocator(BundleContext context)
Finds the BeanLocator associated with this extender; creates one if none exist.
void start(BundleContext context)
void stop(BundleContext context)
Protected Methods
int bundleStateMask()
Returns the mask of bundle states this extender is interested in.
MutableBeanLocator createLocator(BundleContext context)
Returns a new locator of bound components for this extender.
BundleScanner createScanner(BundleContext context)
Creates a customised BundleScanner for this extender.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.osgi.framework.BundleActivator

Public Constructors

public SisuExtender ()

Public Methods

public final MutableBeanLocator findLocator (BundleContext context)

Finds the BeanLocator associated with this extender; creates one if none exist.

Parameters
context The extender context
Returns
  • Associated bean locator

public void start (BundleContext context)

public void stop (BundleContext context)

Protected Methods

protected int bundleStateMask ()

Returns the mask of bundle states this extender is interested in.

Returns
  • State mask

protected MutableBeanLocator createLocator (BundleContext context)

Returns a new locator of bound components for this extender.

Parameters
context The extender context
Returns
  • New bean locator

protected BundleScanner createScanner (BundleContext context)

Creates a customised BundleScanner for this extender.

Parameters
context The extender context
Returns
  • New bundle scanner