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