Package org.eclipse.sisu.wire
Class ChildWireModule
- java.lang.Object
-
- org.eclipse.sisu.wire.ChildWireModule
-
- All Implemented Interfaces:
com.google.inject.Module
public final class ChildWireModule extends java.lang.Object implements com.google.inject.Module
ChildWireModule
that avoids wiring dependencies that already exist in a parentInjector
.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Iterable<com.google.inject.Module>
modules
private com.google.inject.Injector
parent
private WireModule.Strategy
strategy
-
Constructor Summary
Constructors Constructor Description ChildWireModule(com.google.inject.Injector parent, com.google.inject.Module... modules)
ChildWireModule(com.google.inject.Injector parent, 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
-
parent
private final com.google.inject.Injector parent
-
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
-
-