public class SisuBundlePlan extends java.lang.Object implements BundlePlan
BundlePlan that prepares BindingPublishers 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)
BundlePlanBindingPublisher of components for the given bundle.prepare in interface BundlePlanbundle - The bundlenull if the plan doesn't applyprotected boolean appliesTo(org.osgi.framework.Bundle bundle)
true if plan applies to the bundle; otherwise falseprotected 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 bundle