public class SisuBundlePlan extends Object implements BundlePlan
BundlePlan
that prepares BindingPublisher
s for JSR330 bundles.Modifier and Type | Field and Description |
---|---|
protected MutableBeanLocator |
locator |
Constructor and Description |
---|
SisuBundlePlan(MutableBeanLocator locator) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
appliesTo(org.osgi.framework.Bundle bundle) |
protected com.google.inject.Module |
compose(org.osgi.framework.Bundle bundle)
Composes a
Module that configures components from the given bundle. |
protected com.google.inject.Injector |
inject(com.google.inject.Module module)
Creates an
Injector from the composed Module configuration. |
BindingPublisher |
prepare(org.osgi.framework.Bundle bundle)
Prepares a
BindingPublisher of components for the given bundle. |
protected final MutableBeanLocator locator
public SisuBundlePlan(MutableBeanLocator locator)
public BindingPublisher prepare(org.osgi.framework.Bundle bundle)
BundlePlan
BindingPublisher
of components for the given bundle.prepare
in interface BundlePlan
bundle
- The bundlenull
if the plan doesn't applyprotected boolean appliesTo(org.osgi.framework.Bundle bundle)
true
if plan applies to the bundle; otherwise false
protected com.google.inject.Injector inject(com.google.inject.Module module)
Injector
from the composed Module
configuration.module
- The moduleprotected com.google.inject.Module compose(org.osgi.framework.Bundle bundle)
Module
that configures components from the given bundle.bundle
- The bundleCopyright © 2019. All rights reserved.