sonatype/nexus — pull request #321 by velo (2012-02-27 14:24:17+00:00)
Title: NEXUS-4894 - Add some locks for read/write operations

Originally I made my changes on at DefaultTargetRegistry.

But when multiple threads tried to create, delete and check if targets was sane concurrency exceptions started to pop everywhere.

This changes look ugly and verbose on my opinion. And also other parts of nexus would need this "same" change.

May be we could come up with some annotations like @ReadLock, @WriteLock or something. But I think that needs some discussion first.