There should be one interface that defines all public configuration methods in one place. This interface can then be implemented by Config and ConfigSecureWrapper. This should prevent obfuscated calls to service context:
@Override
public final ConfigurationGetter getConfigurationGetter() {
return new ConfigurationSecurityWrapper(cfg);
}
@Override
public final ConfigurationSetter getConfigurationSetter() {
return new ConfigurationSecurityWrapper(cfg);
}
Should be:
public final Configuration getConfiguration() {
return new ConfigurationSecurityWrapper(cfg);
}
There should be one interface that defines all public configuration methods in one place. This interface can then be implemented by Config and ConfigSecureWrapper. This should prevent obfuscated calls to service context:
Should be: