8000354: (props) Properties.storeToXML/loadFromXML need to allow for alternative implementations (original) (raw)

Alan Bateman Alan.Bateman at oracle.com
Sat Oct 6 13:05:53 UTC 2012


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() { ... }}); } Yes, it could be done this way too but I actually prefer the way it is now (I realize this is somewhat subjective).

-Alan.



More information about the core-libs-dev mailing list