Annotation Interface GuiceModule
@Target(TYPE)
@Retention(RUNTIME)
@Documented
@Import(org.springframework.guice.annotation.GuiceModuleRegistrar.class)
public @interface GuiceModule
Annotation that decorates the whole application context and provides metadata to Guice
if the context is used as a Module. Can be added to any
@Configuration
class (and if added to many then the filters are combined with logical OR). By default
all beans in the context will be bound to Guice with all of their implemented
interfaces. If you need to filter out which beans are added you can filter by class.- Author:
- Dave Syer
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionorg.springframework.context.annotation.ComponentScan.Filter[]Specifies which types are not eligible for inclusion in Guice module.String[]Specifies which bean names (by simple wildcard match) are not eligible for inclusion in Guice module.String[]Specifies which bean names (by regex) are not eligible for inclusion in Guice module.org.springframework.context.annotation.ComponentScan.Filter[]Specifies which types are eligible for inclusion in Guice module.String[]Specifies which names (by simple wildcard match) are eligible for inclusion in Guice module.String[]Specifies which names (by regex) are eligible for inclusion in Guice module.
-
Element Details
-
includeFilters
org.springframework.context.annotation.ComponentScan.Filter[] includeFiltersSpecifies which types are eligible for inclusion in Guice module.- Returns:
- filters for inclusion
- Default:
- {}
-
excludeFilters
org.springframework.context.annotation.ComponentScan.Filter[] excludeFiltersSpecifies which types are not eligible for inclusion in Guice module.- Returns:
- filters for exclusion
- Default:
- {}
-
includePatterns
String[] includePatternsSpecifies which names (by regex) are eligible for inclusion in Guice module.- Returns:
- regexes
- Default:
- {}
-
excludePatterns
String[] excludePatternsSpecifies which bean names (by regex) are not eligible for inclusion in Guice module.- Returns:
- regexes
- Default:
- {}
-
includeNames
String[] includeNamesSpecifies which names (by simple wildcard match) are eligible for inclusion in Guice module.- Returns:
- bean names
- Default:
- {}
-
excludeNames
String[] excludeNamesSpecifies which bean names (by simple wildcard match) are not eligible for inclusion in Guice module.- Returns:
- bean names
- Default:
- {}
-