8000354: (props) Properties.storeToXML/loadFromXML need to allow for alternative implementations
Remi Forax
forax at univ-mlv.fr
Sat Oct 6 13:34:47 UTC 2012
On 10/06/2012 03:05 PM, Alan Bateman wrote:
> On 06/10/2012 13:42, Remi Forax wrote:
>>
>> Thanks Alan,
>> I'm fine with methods loadProviderAsService and
>> loadProviderFromProperty, but I think you can remove loadProvider
>> because PROVIDER can be initialized in a static block.
>>
>> private static final XmlPropertiesProvider PROVIDER;
>> static {
>> PROVIDER = AccessController.doPrivileged(
>> new PrivilegedAction<XmlPropertiesProvider>() {
>> ...
>> }});
>> }
> Yes, it could be done this way too but I actually prefer the way it is
> now (I realize this is somewhat subjective).
>
> -Alan.
No problem, I'm fine with that.
Rémi
More information about the core-libs-dev
mailing list