Package org.eclipse.sisu.space
Interface SpaceModule.Strategy
- All Known Implementing Classes:
SisuExtensions
- Enclosing class:
SpaceModule
public static interface SpaceModule.Strategy
Visitor strategy.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SpaceModule.StrategyDefault visitor strategy; scan and bind implementations withQualifiers.static final SpaceModule.StrategySame asDEFAULTbut throwingRuntimeExceptionin case class cannot be scanned. -
Method Summary
Modifier and TypeMethodDescriptionvisitor(com.google.inject.Binder binder) Selects theSpaceVisitorto be used for the givenBinder.
-
Field Details
-
DEFAULT
Default visitor strategy; scan and bind implementations withQualifiers. -
DEFAULT_STRICT
Same asDEFAULTbut throwingRuntimeExceptionin case class cannot be scanned.
-
-
Method Details
-
visitor
Selects theSpaceVisitorto be used for the givenBinder.- Parameters:
binder- The binder- Returns:
- Selected visitor
-