Package org.eclipse.sisu.launch
Utilities to test, launch, and extend Sisu applications.
For example test classes that scan, bind, and auto-wire the test classpath:
@Test public class MyJUnit4orTestNGTest extendsAInjectedTest{ // ...tests... } public class MyJUnit3TestCase extendsInjectedTestCase{ // ...tests... }
Main class that launches Sisu applications from the command-line:
java -classpath myapp.jar:javax.inject.jar:aopalliance.jar:guice-3.0.jar:org.eclipse.sisu.inject.jar org.eclipse.sisu.launch.MainAn OSGi
extender that assembles Sisu applications from OSGi bundles containing JSR330 components.
And a helper class that discovers Sisu extensions registered under META-INF/services.
-
Interface Summary Interface Description BundlePlan Something that can prepareBindingPublishers for component bundles. -
Class Summary Class Description BundleModule Guice module that uses classpath-scanning and auto-wiring to bind JSR330 components from OSGi bundles.InjectedTest Abstract TestNG/JUnit4 test that automatically binds and injects itself.InjectedTestCase Abstract JUnit3TestCasethat automatically binds and injects itself.Main Bootstrap class that creates a staticInjectorby scanning the current class-path for beans.SisuBundlePlan BundlePlanthat preparesBindingPublishers for JSR330 bundles.SisuExtender OSGi extender that uses Sisu and Guice to wire up applications from one or more component bundles.
To enable it installorg.eclipse.sisu.inject.extender, or adapt the class for your own extender.SisuExtensions SPI mechanism for discoveringModuleandStrategyextensions.SisuTracker OSGiBundleTrackerthat tracks component bundles and usesBundlePlans to publish them.