I have a large set of not-quite-POJOs that I'd like to use terracotta on. In general, I'm going to need locks on all the set* methods, but there are a few exceptions (why they are not-quite-POJOs). Is there any way to specify that I want locks on all set* methods, except for those I explicitly name?
Thanks for the reply, but I was looking for a way to exclude, rather than include.
For example:
I have 100 POJOs in package com.example, each having several setter methods. I want to have autolocks on all but a few of those methods.
It's easy enough to get them all:
* com.example..set*(..)
But if I want to exclude just a few, do I have set up dozens of patterns of the form "* com.example.ClassName.set*(..)"? or can I add something to the catch-all above?