Package org.eclipse.sisu.space
Class SpaceModule
java.lang.Object
org.eclipse.sisu.space.SpaceModule
- All Implemented Interfaces:
com.google.inject.Module
Guice
Module
that automatically binds types annotated with Qualifier
annotations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
static interface
Visitor strategy. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final ClassFinder
static final ClassFinder
static final ClassFinder
static final ClassFinder
private static final String
private final ClassSpace
private SpaceModule.Strategy
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceModule
(ClassSpace space) SpaceModule
(ClassSpace space, BeanScanning scanning) SpaceModule
(ClassSpace space, ClassFinder finder) -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(com.google.inject.Binder binder) private void
recordAndReplayElements
(com.google.inject.Binder binder) private static void
replayRecordedElements
(com.google.inject.Binder binder, 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 Details
-
NAMED_INDEX
- See Also:
-
LOCAL_INDEX
-
GLOBAL_INDEX
-
LOCAL_SCAN
-
caching
private final boolean caching -
space
-
finder
-
strategy
-
-
Constructor Details
-
SpaceModule
-
SpaceModule
-
SpaceModule
-
-
Method Details
-
with
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, List<com.google.inject.spi.Element> elements)
-