All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy