com.alibaba.dubbo.config.spring.context.annotation
Annotation Type EnableDubbo


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Inherited
@Documented
@EnableDubboConfig
@DubboComponentScan
public @interface EnableDubbo

Enables Dubbo components as Spring Beans, equals DubboComponentScan and EnableDubboConfig combination.

Note : EnableDubbo must base on Spring Framework 4.2 and above

Since:
2.5.8
Author:
Mercy
See Also:
DubboComponentScan, EnableDubboConfig

Optional Element Summary
 boolean multipleConfig
          It indicates whether AbstractConfig binding to multiple Spring Beans.
 Class<?>[] scanBasePackageClasses
          Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated @Service classes.
 String[] scanBasePackages
          Base packages to scan for annotated @Service classes.
 

scanBasePackages

@AliasFor(annotation=DubboComponentScan.class,
          attribute="basePackages")
public abstract String[] scanBasePackages
Base packages to scan for annotated @Service classes.

Use scanBasePackageClasses() for a type-safe alternative to String-based package names.

Returns:
the base packages to scan
See Also:
DubboComponentScan.basePackages()
Default:
{}

scanBasePackageClasses

@AliasFor(annotation=DubboComponentScan.class,
          attribute="basePackageClasses")
public abstract Class<?>[] scanBasePackageClasses
Type-safe alternative to scanBasePackages() for specifying the packages to scan for annotated @Service classes. The package of each class specified will be scanned.

Returns:
classes from the base packages to scan
See Also:
DubboComponentScan.basePackageClasses()
Default:
{}

multipleConfig

@AliasFor(annotation=EnableDubboConfig.class,
          attribute="multiple")
public abstract boolean multipleConfig
It indicates whether AbstractConfig binding to multiple Spring Beans.

Returns:
the default value is false
See Also:
EnableDubboConfig.multiple()
Default:
false


Copyright © 2012–2017 Alibaba. All rights reserved.