Package org.eclipse.sisu.launch
Class SisuBundlePlan
- java.lang.Object
-
- org.eclipse.sisu.launch.SisuBundlePlan
-
- All Implemented Interfaces:
BundlePlan
public class SisuBundlePlan extends Object implements BundlePlan
BundlePlanthat preparesBindingPublishers for JSR330 bundles.
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableBeanLocatorlocator
-
Constructor Summary
Constructors Constructor Description SisuBundlePlan(MutableBeanLocator locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanappliesTo(org.osgi.framework.Bundle bundle)protected com.google.inject.Modulecompose(org.osgi.framework.Bundle bundle)Composes aModulethat configures components from the given bundle.protected com.google.inject.Injectorinject(com.google.inject.Module module)Creates anInjectorfrom the composedModuleconfiguration.BindingPublisherprepare(org.osgi.framework.Bundle bundle)Prepares aBindingPublisherof components for the given bundle.
-
-
-
Field Detail
-
locator
protected final MutableBeanLocator locator
-
-
Constructor Detail
-
SisuBundlePlan
public SisuBundlePlan(MutableBeanLocator locator)
-
-
Method Detail
-
prepare
public BindingPublisher prepare(org.osgi.framework.Bundle bundle)
Description copied from interface:BundlePlanPrepares aBindingPublisherof components for the given bundle.- Specified by:
preparein interfaceBundlePlan- Parameters:
bundle- The bundle- Returns:
- Publisher of bindings;
nullif the plan doesn't apply
-
appliesTo
protected boolean appliesTo(org.osgi.framework.Bundle bundle)
- Returns:
trueif plan applies to the bundle; otherwisefalse
-
inject
protected com.google.inject.Injector inject(com.google.inject.Module module)
Creates anInjectorfrom the composedModuleconfiguration.- Parameters:
module- The module- Returns:
- Bundle injector
-
compose
protected com.google.inject.Module compose(org.osgi.framework.Bundle bundle)
Composes aModulethat configures components from the given bundle.- Parameters:
bundle- The bundle- Returns:
- Bundle module
-
-