apollo.spring.annotation.ApolloConfig Maven / Gradle / Ivy
The newest version!
package apollo.spring.annotation;
import framework.apollo.core.ConfigConsts;
import java.lang.annotation.*;
/**
* Use this annotation to inject Apollo Config Instance.
*
* Usage example:
*
* //Inject the config for "someNamespace"
* @ApolloConfig("someNamespace")
* private Config config;
*
*
* @author Jason Song([email protected])
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@Documented
public @interface ApolloConfig {
/**
* Apollo appNamespace for the config, if not specified then default to application
*/
String value() default ConfigConsts.NAMESPACE_APPLICATION;
}