openstack4j icon indicating copy to clipboard operation
openstack4j copied to clipboard

How to implement a custom parser

Open wuxiaochen1209 opened this issue 5 years ago • 0 comments

In version 3.1.0, how should I define a custom parser final ServiceVersionResolver resolver = new ServiceVersionResolver() {      @Override      Public Service resolve(ServiceType type, SortedSet<? extends Service> services) {          // resolver logic; possibly ext. default logic          Return endpoint;      } }; withConfig(Config.newConfig().withResolver(resolver)) This example can't be used? Is there a specific implementation?

wuxiaochen1209 avatar Jan 11 '19 11:01 wuxiaochen1209