Legacy applications can use the Plexus container API as usual:
ContainerConfiguration config = new DefaultContainerConfiguration(); // ... configure ... PlexusContainer container = null; try { container = new DefaultPlexusContainer( config ); // ... execute/wait ... } finally { if ( container != null ) { container.dispose(); } }Sisu applications that want to re-use Plexus components can use the
PlexusSpaceModule
wrapper:
binder.install( new PlexusSpaceModule( space ) );
org.eclipse.sisu.plexus | Sisu-Plexus backend implementation. |