use of com.netflix.ribbon.proxy.annotation.ClientProperties.Property in project ribbon by Netflix.
the class ClientPropertiesProcessor method process.
@Override
public void process(String groupName, GroupBuilder groupBuilder, RibbonResourceFactory resourceFactory, Class<?> interfaceClass) {
ClientProperties properties = interfaceClass.getAnnotation(ClientProperties.class);
if (properties != null) {
IClientConfig config = resourceFactory.getClientConfigFactory().newConfig();
for (Property prop : properties.properties()) {
String name = prop.name();
config.set(CommonClientConfigKey.valueOf(name), prop.value());
}
ClientOptions options = ClientOptions.from(config);
groupBuilder.withClientOptions(options);
if (properties.exportToArchaius()) {
exportPropertiesToArchaius(groupName, config, interfaceClass.getName());
}
}
}
Aggregations