Package org.eclipse.sisu.wire
Class WireModule
- java.lang.Object
-
- org.eclipse.sisu.wire.WireModule
-
- All Implemented Interfaces:
com.google.inject.Module
public final class WireModule extends java.lang.Object implements com.google.inject.Module
GuiceModule
that automatically addsBeanLocator
-backed bindings for unresolved dependencies.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
WireModule.Strategy
Wiring strategy.
-
Field Summary
Fields Modifier and Type Field Description (package private) static com.google.inject.Module[]
CONVERTERS
private java.lang.Iterable<com.google.inject.Module>
modules
private WireModule.Strategy
strategy
-
Constructor Summary
Constructors Constructor Description WireModule(com.google.inject.Module... modules)
WireModule(java.lang.Iterable<com.google.inject.Module> modules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(com.google.inject.Binder binder)
com.google.inject.Module
with(WireModule.Strategy _strategy)
Applies a new wiringWireModule.Strategy
to the current module.
-
-
-
Field Detail
-
CONVERTERS
static final com.google.inject.Module[] CONVERTERS
-
modules
private final java.lang.Iterable<com.google.inject.Module> modules
-
strategy
private WireModule.Strategy strategy
-
-
Method Detail
-
with
public com.google.inject.Module with(WireModule.Strategy _strategy)
Applies a new wiringWireModule.Strategy
to the current module.- Parameters:
_strategy
- The new strategy- Returns:
- Updated module
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configure
in interfacecom.google.inject.Module
-
-