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


@Target(value={TYPE,ANNOTATION_TYPE})
@Retention(value=RUNTIME)
@Documented
@Import(value=DubboConfigBindingRegistrar.class)
public @interface EnableDubboConfigBinding

Enables Spring's annotation-driven Dubbo Config from properties.

Default , prefix() associates with a prefix of properties, e,g. "dubbo.application." or "dubbo.application"

 

Since:
2.5.8
Author:
Mercy
See Also:
DubboConfigBindingRegistrar, DubboConfigBindingBeanPostProcessor, EnableDubboConfigBindings

Required Element Summary
 String prefix
          The name prefix of the properties that are valid to bind to Dubbo Config.
 Class<? extends AbstractConfig> type
           
 
Optional Element Summary
 boolean multiple
          It indicates whether prefix() binding to multiple Spring Beans.
 

Element Detail

prefix

public abstract String prefix
The name prefix of the properties that are valid to bind to Dubbo Config.

Returns:
the name prefix of the properties to bind

type

public abstract Class<? extends AbstractConfig> type
Returns:
The binding type of Dubbo Config.
See Also:
AbstractConfig, ApplicationConfig, ModuleConfig, RegistryConfig

multiple

public abstract boolean multiple
It indicates whether prefix() binding to multiple Spring Beans.

Returns:
the default value is false
Default:
false


Copyright © 2012–2017 Alibaba. All rights reserved.