Package org.eclipse.sisu.plexus
Class PlexusAnnotatedBeanModule
java.lang.Object
org.eclipse.sisu.plexus.PlexusAnnotatedBeanModule
- All Implemented Interfaces:
PlexusBeanModule
PlexusBeanModule
that binds Plexus components by scanning classes for runtime annotations.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
PlexusBeanSource
backed by runtime annotation metadata. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PlexusBeanSource
private static final SpaceModule.Strategy
private com.google.inject.Module
-
Constructor Summary
ConstructorsConstructorDescriptionPlexusAnnotatedBeanModule
(ClassSpace space, Map<?, ?> variables) Creates a bean source that scans the given class space for Plexus annotations using the given scanner.PlexusAnnotatedBeanModule
(ClassSpace space, Map<?, ?> variables, BeanScanning scanning) Creates a bean source that scans the given class space for Plexus annotations using the given scanner. -
Method Summary
Modifier and TypeMethodDescriptionconfigure
(com.google.inject.Binder binder) Contributes bindings and returns any associatedPlexusBeanSource
metadata.with
(SpaceModule.Strategy _strategy)
-
Field Details
-
PLEXUS_STRATEGY
-
spaceModule
private com.google.inject.Module spaceModule -
beanSource
-
-
Constructor Details
-
PlexusAnnotatedBeanModule
Creates a bean source that scans the given class space for Plexus annotations using the given scanner.- Parameters:
space
- The local class spacevariables
- The filter variables
-
PlexusAnnotatedBeanModule
Creates a bean source that scans the given class space for Plexus annotations using the given scanner.- Parameters:
space
- The local class spacevariables
- The filter variablesscanning
- The scanning options
-
-
Method Details
-
with
-
configure
Description copied from interface:PlexusBeanModule
Contributes bindings and returns any associatedPlexusBeanSource
metadata.- Specified by:
configure
in interfacePlexusBeanModule
- See Also:
-
Module.configure(Binder)
-