public final class SpaceModule
extends java.lang.Object
implements com.google.inject.Module
Module
that automatically binds types annotated with Qualifier
annotations.Modifier and Type | Class and Description |
---|---|
private static class |
SpaceModule.RecordedElements |
static interface |
SpaceModule.Strategy
Visitor strategy.
|
Modifier and Type | Field and 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 and Description |
---|
SpaceModule(ClassSpace space) |
SpaceModule(ClassSpace space,
BeanScanning scanning) |
SpaceModule(ClassSpace space,
ClassFinder finder) |
Modifier and Type | Method and 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 visitor
SpaceModule.Strategy to the current module. |
private static final java.lang.String NAMED_INDEX
public static final ClassFinder LOCAL_INDEX
public static final ClassFinder GLOBAL_INDEX
public static final ClassFinder LOCAL_SCAN
private final boolean caching
private final ClassSpace space
private final ClassFinder finder
private SpaceModule.Strategy strategy
public SpaceModule(ClassSpace space)
public SpaceModule(ClassSpace space, ClassFinder finder)
public SpaceModule(ClassSpace space, BeanScanning scanning)
public com.google.inject.Module with(SpaceModule.Strategy _strategy)
SpaceModule.Strategy
to the current module._strategy
- The new strategypublic void configure(com.google.inject.Binder binder)
configure
in interface com.google.inject.Module
void scanForElements(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)