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 {@link org.eclipse.sisu.plexus.PlexusSpaceModule} wrapper:
binder.install( new PlexusSpaceModule( space ) );