Closed collinpeters closed 1 year ago
Hi @collinpeters - the recommended way to install modules is via the configure
method:
@Override
public void configure( final Binder binder )
{
binder.install( new MyModule() );
}
this guarantees that the custom module will be wrapped inside the WireModule
Thanks!
I needed to override
setUp
to add an additional module inInjectedTest
but its current implementation uses thisSetUpModule
which is package-private. So I either have to put my class in theorg.eclipse.sisu.launch
package or duplicate that code. Can this be made public?https://github.com/eclipse/sisu.inject/blob/6fa4bc1a635f1e8ec91e438bcb059f414d713f70/org.eclipse.sisu.inject/src/org/eclipse/sisu/launch/InjectedTest.java#L64-L68