Package org.eclipse.sisu.launch
Class SisuBundlePlan
- java.lang.Object
-
- org.eclipse.sisu.launch.SisuBundlePlan
-
- All Implemented Interfaces:
BundlePlan
public class SisuBundlePlan extends java.lang.Object implements BundlePlan
BundlePlan
that preparesBindingPublisher
s for JSR330 bundles.
-
-
Field Summary
Fields Modifier and Type Field Description protected MutableBeanLocator
locator
-
Constructor Summary
Constructors Constructor Description SisuBundlePlan(MutableBeanLocator locator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
appliesTo(org.osgi.framework.Bundle bundle)
protected com.google.inject.Module
compose(org.osgi.framework.Bundle bundle)
Composes aModule
that configures components from the given bundle.protected com.google.inject.Injector
inject(com.google.inject.Module module)
Creates anInjector
from the composedModule
configuration.BindingPublisher
prepare(org.osgi.framework.Bundle bundle)
Prepares aBindingPublisher
of 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:BundlePlan
Prepares aBindingPublisher
of components for the given bundle.- Specified by:
prepare
in interfaceBundlePlan
- Parameters:
bundle
- The bundle- Returns:
- Publisher of bindings;
null
if the plan doesn't apply
-
appliesTo
protected boolean appliesTo(org.osgi.framework.Bundle bundle)
- Returns:
true
if plan applies to the bundle; otherwisefalse
-
inject
protected com.google.inject.Injector inject(com.google.inject.Module module)
Creates anInjector
from the composedModule
configuration.- Parameters:
module
- The module- Returns:
- Bundle injector
-
compose
protected com.google.inject.Module compose(org.osgi.framework.Bundle bundle)
Composes aModule
that configures components from the given bundle.- Parameters:
bundle
- The bundle- Returns:
- Bundle module
-
-