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.Module
GuiceModule
that automatically binds types annotated withQualifier
annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
SpaceModule.RecordedElements
static interface
SpaceModule.Strategy
Visitor strategy.
-
Field Summary
Fields Modifier and Type Field Description private boolean
caching
private ClassFinder
finder
static ClassFinder
GLOBAL_INDEX
static ClassFinder
LOCAL_INDEX
static ClassFinder
LOCAL_SCAN
private static java.lang.String
NAMED_INDEX
private ClassSpace
space
private SpaceModule.Strategy
strategy
-
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 void
configure(com.google.inject.Binder binder)
private void
recordAndReplayElements(com.google.inject.Binder binder)
private static void
replayRecordedElements(com.google.inject.Binder binder, java.util.List<com.google.inject.spi.Element> elements)
(package private) void
scanForElements(com.google.inject.Binder binder)
com.google.inject.Module
with(SpaceModule.Strategy _strategy)
Applies a new visitorSpaceModule.Strategy
to 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.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
-
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)
-
-