We have a lot of places where we just repeat the same code:
final DynamicConfigurationService dcs = serviceLocator.getService(DynamicConfigurationService.class);
final DynamicConfiguration dc = dcs.createDynamicConfiguration();
Seems the only use case for working with DCS is really just to create a new configuration. So I'd say the DCS could be hidden as an internal HK2 impl detail and the DC could be directly exposed via ServiceLocator interface:
final DynamicConfiguration dc = serviceLocator.createDynamicConfiguration();
We have a lot of places where we just repeat the same code:
Seems the only use case for working with DCS is really just to create a new configuration. So I'd say the DCS could be hidden as an internal HK2 impl detail and the DC could be directly exposed via ServiceLocator interface:
Affected Versions
[2.1.*]