我可以像这样使用治理 API 添加和读取属性:
registry = Util.initialize();
governanceRegistry = Util.getGovernanceRegistry(registry);
serviceManager = new ServiceManager(governanceRegistry);
services = Arrays.asList(serviceManager.getAllServices());
services.get(2).addAttribute("what", "isthis");
serviceManager.updateService(services.get(2));
但是,当我使用 WSO2 Governance Registry Management Console 并打开刚刚添加参数/值“what”/“isthis”的服务时,我在Properties列表中看不到它。
如何使用 API 访问属性列表(不是属性)?我很难弄清楚这些是如何相互关联的。