-
- All Implemented Interfaces:
-
java.lang.annotation.Annotation
@Retention(value = RetentionPolicy.RUNTIME)@Target(value = ElementType.TYPE)@Documented()@Import(value = {EnodeConfigurationSelector.class.class}) public @interface EnableEnode
-
-
Method Summary
Modifier and Type Method Description abstract Array<String>value()Alias for basePackages. abstract Array<String>basePackages()Base packages to scan for annotated components. abstract Array<String>scanBasePackages()abstract Array<Class<out Object>>scanBasePackageClasses()abstract Array<Class<out Object>>basePackageClasses()Type-safe alternative to basePackages for specifying the packages to scan for annotated components. -
-
Method Detail
-
value
@AliasFor(value = "basePackages") abstract Array<String> value()
Alias for basePackages.
Allows for more concise annotation declarations if no other attributes are needed — for example,
@EnableEnode("org.my.pkg")instead of@EnableEnode(basePackages = "org.my.pkg").
-
basePackages
@AliasFor(value = "value") abstract Array<String> basePackages()
Base packages to scan for annotated components.
value is an alias for (and mutually exclusive with) this attribute.
Use basePackageClasses for a type-safe alternative to String-based package names.
-
scanBasePackages
abstract Array<String> scanBasePackages()
-
scanBasePackageClasses
@AliasFor(value = "basePackageClasses") abstract Array<Class<out Object>> scanBasePackageClasses()
-
basePackageClasses
@AliasFor(value = "scanBasePackageClasses") abstract Array<Class<out Object>> basePackageClasses()
Type-safe alternative to basePackages for specifying the packages to scan for annotated components. The package of each class specified will be scanned.
Consider creating a special no-op marker class or interface in each package that serves no purpose other than being referenced by this attribute.
-
-
-
-