public final class PlexusAnnotatedBeanModule extends java.lang.Object implements PlexusBeanModule
PlexusBeanModule
that binds Plexus components by scanning classes for runtime annotations.Modifier and Type | Class and Description |
---|---|
private static class |
PlexusAnnotatedBeanModule.PlexusAnnotatedBeanSource
PlexusBeanSource backed by runtime annotation metadata. |
Modifier and Type | Field and Description |
---|---|
private PlexusBeanSource |
beanSource |
private static SpaceModule.Strategy |
PLEXUS_STRATEGY |
private com.google.inject.Module |
spaceModule |
Constructor and Description |
---|
PlexusAnnotatedBeanModule(ClassSpace space,
java.util.Map<?,?> variables)
Creates a bean source that scans the given class space for Plexus annotations using the given scanner.
|
PlexusAnnotatedBeanModule(ClassSpace space,
java.util.Map<?,?> variables,
BeanScanning scanning)
Creates a bean source that scans the given class space for Plexus annotations using the given scanner.
|
Modifier and Type | Method and Description |
---|---|
PlexusBeanSource |
configure(com.google.inject.Binder binder)
Contributes bindings and returns any associated
PlexusBeanSource metadata. |
PlexusBeanModule |
with(SpaceModule.Strategy _strategy) |
private static final SpaceModule.Strategy PLEXUS_STRATEGY
private com.google.inject.Module spaceModule
private final PlexusBeanSource beanSource
public PlexusAnnotatedBeanModule(ClassSpace space, java.util.Map<?,?> variables)
space
- The local class spacevariables
- The filter variablespublic PlexusAnnotatedBeanModule(ClassSpace space, java.util.Map<?,?> variables, BeanScanning scanning)
space
- The local class spacevariables
- The filter variablesscanning
- The scanning optionspublic PlexusBeanModule with(SpaceModule.Strategy _strategy)
public PlexusBeanSource configure(com.google.inject.Binder binder)
PlexusBeanModule
PlexusBeanSource
metadata.configure
in interface PlexusBeanModule
Module.configure(Binder)