Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.6
-
Fix Version/s: 0.7
-
Labels:None
Description
With the development of stateful POJO based services it can be really convenient to easily protect a given service using read write locks.
By annotating a POJO such as in the following it should be easy to create a POJO service protected using read-write locks:
@ReadLock
pubilc void getSomething() { ...}
@WriteLock
public void setSomething(..) {...}
The annotations should be put on the implementation class as the implementation defines it concurrency requirements the interface only defines the concurrency behavior. Also, this design allows a service implementation to do its own custom locking.
By annotating a POJO such as in the following it should be easy to create a POJO service protected using read-write locks:
@ReadLock
pubilc void getSomething() { ...}
@WriteLock
public void setSomething(..) {...}
The annotations should be put on the implementation class as the implementation defines it concurrency requirements the interface only defines the concurrency behavior. Also, this design allows a service implementation to do its own custom locking.
wamblee-support:
- org.wamblee.concurrency.ReadWriteLockProxyFactory