Re: Immutable builder pattern for parsers?

2017-02-09 Thread Peter Ansell
On 9 February 2017 at 13:38, Stian Soiland-Reyes wrote: > Peter Ansell raised a valid question about why in Commons RDF I made the > RDFParser interface as an immutable factory-like builder pattern. > >

[ANNOUNCE] Apache Commons JCS 2.1 Released

2017-02-09 Thread Thomas Vandahl
The Apache Commons Team is pleased to announce the availability of: Apache Commons JCS 2.1 Apache Commons JCS is a distributed, versatile caching system. The release notes can be reviewed at: http://www.apache.org/dist/commons/jcs/RELEASE-NOTES.txt Distribution packages can be downloaded from:

[ANNOUNCE] Apache Commons Configuration 2.1.1 released!

2017-02-09 Thread Benedikt Ritter
The Apache Commons team is happy to announce the release of Commons Configuration 2.1.1! The Commons Configuration software library provides a generic configuration interface which enables a Java application to read configuration data from a variety of sources. Commons Configuration provides

Re: Immutable builder pattern for parsers?

2017-02-09 Thread Matt Sicker
Come to think of it, clone() is going to make a shallow copy anyways, so any RDFParser fields here wouldn't get copied between clones, just references. On 9 February 2017 at 03:44, sebb wrote: > I've not looked at the code itself yet, but AFAIK clone() is not > sufficient to

Re: Immutable builder pattern for parsers?

2017-02-09 Thread sebb
I've not looked at the code itself yet, but AFAIK clone() is not sufficient to ensure thread-safety of a mutable object. This is a consequence of the Java memory model, which allows items to be cached locally. Simply put, safe publication of values requires that the reader of a field synchronise