Package org.eclipse.sisu.launch
Class SisuBundlePlan
java.lang.Object
org.eclipse.sisu.launch.SisuBundlePlan
- All Implemented Interfaces:
BundlePlan
BundlePlan that prepares BindingPublishers for JSR330 bundles.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.prepare(org.osgi.framework.Bundle bundle) Prepares aBindingPublisherof components for the given bundle.
-
Field Details
-
locator
-
-
Constructor Details
-
SisuBundlePlan
-
-
Method Details
-
prepare
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
-