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
private final boolean
If set totrue
will throwRuntimeException
in case class cannot be scannedstatic final ClassFinder
static final ClassFinder
private static final String
private final ClassSpace
private SpaceModule.Strategy
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceModule
(ClassSpace space) Deprecated.SpaceModule
(ClassSpace space, BeanScanning scanning) Deprecated.UseSpaceModule(ClassSpace, ClassFinder, boolean)
insteadSpaceModule
(ClassSpace space, BeanScanning scanning, boolean isStrict) SpaceModule
(ClassSpace space, ClassFinder finder) Deprecated.UseSpaceModule(ClassSpace, ClassFinder, boolean)
instead.SpaceModule
(ClassSpace space, ClassFinder finder, boolean isStrict) -
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
-
isStrict
private final boolean isStrictIf set totrue
will throwRuntimeException
in case class cannot be scanned -
strategy
-
-
Constructor Details
-
SpaceModule
Deprecated.UseSpaceModule(ClassSpace, ClassFinder, boolean)
instead.- Parameters:
space
-
-
SpaceModule
Deprecated.UseSpaceModule(ClassSpace, ClassFinder, boolean)
instead.- Parameters:
space
-finder
-
-
SpaceModule
-
SpaceModule
Deprecated.UseSpaceModule(ClassSpace, ClassFinder, boolean)
instead- Parameters:
space
-scanning
-
-
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)
-
SpaceModule(ClassSpace, ClassFinder, boolean)
instead.