Package org.eclipse.sisu.plexus
Class PlexusAnnotatedBeanModule
- java.lang.Object
-
- org.eclipse.sisu.plexus.PlexusAnnotatedBeanModule
-
- All Implemented Interfaces:
PlexusBeanModule
public final class PlexusAnnotatedBeanModule extends java.lang.Object implements PlexusBeanModule
PlexusBeanModule
that binds Plexus components by scanning classes for runtime annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
PlexusAnnotatedBeanModule.PlexusAnnotatedBeanSource
PlexusBeanSource
backed by runtime annotation metadata.
-
Field Summary
Fields Modifier and Type Field Description private PlexusBeanSource
beanSource
private static SpaceModule.Strategy
PLEXUS_STRATEGY
private com.google.inject.Module
spaceModule
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlexusBeanSource
configure(com.google.inject.Binder binder)
Contributes bindings and returns any associatedPlexusBeanSource
metadata.PlexusBeanModule
with(SpaceModule.Strategy _strategy)
-
-
-
Field Detail
-
PLEXUS_STRATEGY
private static final SpaceModule.Strategy PLEXUS_STRATEGY
-
spaceModule
private com.google.inject.Module spaceModule
-
beanSource
private final PlexusBeanSource beanSource
-
-
Constructor Detail
-
PlexusAnnotatedBeanModule
public PlexusAnnotatedBeanModule(ClassSpace space, java.util.Map<?,?> variables)
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
public 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.- Parameters:
space
- The local class spacevariables
- The filter variablesscanning
- The scanning options
-
-
Method Detail
-
with
public PlexusBeanModule with(SpaceModule.Strategy _strategy)
-
configure
public PlexusBeanSource configure(com.google.inject.Binder binder)
Description copied from interface:PlexusBeanModule
Contributes bindings and returns any associatedPlexusBeanSource
metadata.- Specified by:
configure
in interfacePlexusBeanModule
- See Also:
Module.configure(Binder)
-
-