public class

SisuBundlePlan

extends Object
implements BundlePlan
java.lang.Object
   ↳ org.eclipse.sisu.launch.SisuBundlePlan

Class Overview

BundlePlan that prepares BindingPublishers for JSR330 bundles.

Summary

Fields
protected final MutableBeanLocator locator
Public Constructors
SisuBundlePlan(MutableBeanLocator locator)
Public Methods
BindingPublisher prepare(Bundle bundle)
Prepares a BindingPublisher of components for the given bundle.
Protected Methods
boolean appliesTo(Bundle bundle)
Module compose(Bundle bundle)
Composes a Module that configures components from the given bundle.
Injector inject(Module module)
Creates an Injector from the composed Module configuration.
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.eclipse.sisu.launch.BundlePlan

Fields

protected final MutableBeanLocator locator

Public Constructors

public SisuBundlePlan (MutableBeanLocator locator)

Public Methods

public BindingPublisher prepare (Bundle bundle)

Prepares a BindingPublisher of components for the given bundle.

Parameters
bundle The bundle
Returns
  • Publisher of bindings; null if the plan doesn't apply

Protected Methods

protected boolean appliesTo (Bundle bundle)

Returns
  • true if plan applies to the bundle; otherwise false

protected Module compose (Bundle bundle)

Composes a Module that configures components from the given bundle.

Parameters
bundle The bundle
Returns
  • Bundle module

protected Injector inject (Module module)

Creates an Injector from the composed Module configuration.

Parameters
module The module
Returns
  • Bundle injector