public class

BundleModule

extends Object
implements Module
java.lang.Object
   ↳ org.eclipse.sisu.launch.BundleModule

Class Overview

Guice module that uses classpath-scanning and auto-wiring to bind JSR330 components from OSGi bundles.

Summary

Fields
protected final SisuExtensions extensions Local bundle extensions to Sisu.
protected final MutableBeanLocator locator Shared locator of bound components.
protected final BundleClassSpace space Local bundle classes and resources.
Public Constructors
BundleModule(Bundle bundle, MutableBeanLocator locator)
Public Methods
void configure(Binder binder)
Protected Methods
Module contextModule()
Returns a module containing common context bindings for the bundle.
Module extensionsModule()
Returns a module that installs modules from META-INF/services/com.google.inject.Module.
Map<?, ?> getProperties()
Returns the properties associated with the current context.
List<Module> modules()
Returns the list of configured binding modules for this bundle.
Module spaceModule()
Returns a module that scans the bundle classpath for components.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.inject.Module

Fields

protected final SisuExtensions extensions

Local bundle extensions to Sisu.

protected final MutableBeanLocator locator

Shared locator of bound components.

protected final BundleClassSpace space

Local bundle classes and resources.

Public Constructors

public BundleModule (Bundle bundle, MutableBeanLocator locator)

Public Methods

public void configure (Binder binder)

Protected Methods

protected Module contextModule ()

Returns a module containing common context bindings for the bundle.

Returns
  • Common context module

protected Module extensionsModule ()

Returns a module that installs modules from META-INF/services/com.google.inject.Module.

Returns
  • Local extensions module

protected Map<?, ?> getProperties ()

Returns the properties associated with the current context.

Returns
  • The properties

protected List<Module> modules ()

Returns the list of configured binding modules for this bundle.

Returns
  • The bundle's modules

protected Module spaceModule ()

Returns a module that scans the bundle classpath for components.

Returns
  • Classpath scanning module