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
PlexusBeanModulethat binds Plexus components by scanning classes for runtime annotations.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPlexusAnnotatedBeanModule.PlexusAnnotatedBeanSourcePlexusBeanSourcebacked by runtime annotation metadata.
-
Field Summary
Fields Modifier and Type Field Description private PlexusBeanSourcebeanSourceprivate static SpaceModule.StrategyPLEXUS_STRATEGYprivate com.google.inject.ModulespaceModule
-
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 PlexusBeanSourceconfigure(com.google.inject.Binder binder)Contributes bindings and returns any associatedPlexusBeanSourcemetadata.PlexusBeanModulewith(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:PlexusBeanModuleContributes bindings and returns any associatedPlexusBeanSourcemetadata.- Specified by:
configurein interfacePlexusBeanModule- See Also:
Module.configure(Binder)
-
-