Package org.eclipse.sisu.space
Class SpaceModule
- java.lang.Object
-
- org.eclipse.sisu.space.SpaceModule
-
- All Implemented Interfaces:
com.google.inject.Module
public final class SpaceModule extends java.lang.Object implements com.google.inject.ModuleGuiceModulethat automatically binds types annotated withQualifierannotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classSpaceModule.RecordedElementsstatic interfaceSpaceModule.StrategyVisitor strategy.
-
Field Summary
Fields Modifier and Type Field Description private booleancachingprivate ClassFinderfinderstatic ClassFinderGLOBAL_INDEXstatic ClassFinderLOCAL_INDEXstatic ClassFinderLOCAL_SCANprivate static java.lang.StringNAMED_INDEXprivate ClassSpacespaceprivate SpaceModule.Strategystrategy
-
Constructor Summary
Constructors Constructor Description SpaceModule(ClassSpace space)SpaceModule(ClassSpace space, BeanScanning scanning)SpaceModule(ClassSpace space, ClassFinder finder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(com.google.inject.Binder binder)private voidrecordAndReplayElements(com.google.inject.Binder binder)private static voidreplayRecordedElements(com.google.inject.Binder binder, java.util.List<com.google.inject.spi.Element> elements)(package private) voidscanForElements(com.google.inject.Binder binder)com.google.inject.Modulewith(SpaceModule.Strategy _strategy)Applies a new visitorSpaceModule.Strategyto the current module.
-
-
-
Field Detail
-
NAMED_INDEX
private static final java.lang.String NAMED_INDEX
- See Also:
- Constant Field Values
-
LOCAL_INDEX
public static final ClassFinder LOCAL_INDEX
-
GLOBAL_INDEX
public static final ClassFinder GLOBAL_INDEX
-
LOCAL_SCAN
public static final ClassFinder LOCAL_SCAN
-
caching
private final boolean caching
-
space
private final ClassSpace space
-
finder
private final ClassFinder finder
-
strategy
private SpaceModule.Strategy strategy
-
-
Constructor Detail
-
SpaceModule
public SpaceModule(ClassSpace space)
-
SpaceModule
public SpaceModule(ClassSpace space, ClassFinder finder)
-
SpaceModule
public SpaceModule(ClassSpace space, BeanScanning scanning)
-
-
Method Detail
-
with
public com.google.inject.Module with(SpaceModule.Strategy _strategy)
Applies a new visitorSpaceModule.Strategyto the current module.- Parameters:
_strategy- The new strategy- Returns:
- Updated module
-
configure
public void configure(com.google.inject.Binder binder)
- Specified by:
configurein interfacecom.google.inject.Module
-
scanForElements
void scanForElements(com.google.inject.Binder binder)
-
recordAndReplayElements
private void recordAndReplayElements(com.google.inject.Binder binder)
-
replayRecordedElements
private static void replayRecordedElements(com.google.inject.Binder binder, java.util.List<com.google.inject.spi.Element> elements)
-
-