@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Import(value=ShackleTemplatesRegistrar.class) public @interface EnableShackleTemplates
| 限定符和类型 | 可选元素和说明 |
|---|---|
java.lang.Class<?>[] |
basePackageClasses
Type-safe alternative to
basePackages() for specifying the packages to
scan for annotated components. |
java.lang.String[] |
basePackages
Base packages to scan for annotated components.
|
java.lang.Class<?>[] |
defaultConfiguration
A custom
@Configuration for all shackle templates. |
java.lang.String |
defaultServiceTemplateBeanName
默认事务模板名称,如果定义了多个事务模板,这里需要用存在的一个模板名称覆盖
|
java.lang.Class<?>[] |
templates
List of classes annotated with @ShackleTemplate.
|
java.lang.String[] |
value
Alias for the
basePackages() attribute. |
public abstract java.lang.String[] value
basePackages() attribute. Allows for more concise annotation
declarations e.g.: @ComponentScan("org.my.pkg") instead of
@ComponentScan(basePackages="org.my.pkg").public abstract java.lang.String[] basePackages
value() is an alias for (and mutually exclusive with) this attribute.
Use basePackageClasses() for a type-safe alternative to String-based
package names.
public abstract java.lang.Class<?>[] basePackageClasses
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.
public abstract java.lang.Class<?>[] defaultConfiguration
@Configuration for all shackle templates. Can contain override
@Bean definition for the pieces that make up the shackle.for the defaultsCopyright © 2019. All Rights Reserved.