Yes, with the latest proposal, I am going to allow it unless I see other problems. Originally, I propsed it is ok to have complex Serializable type but just not "aspectized" POJO that needs internall mapping.
One small problem. What if the POJO is something like this:
public Singleton { static int i = 3; private Singleton() {} public int getI() { return i; } }
Yes, with the proposed approach, we will have to document that you will attach to be able to replicate the static fields; that means, you need an "aspectized" POJO instance.
Is static field replication feature there in JBOSS Cache Release 2.0.0 CR3. I do see a staticFieldInterceptor class in the PojoCache.jar file. How do I use it?
If not, when will this feature (time frame) be avaialble.
That interceptor was left over from an incomplete experimental implementation.
Static field replication is currently planned for 2.1.0:
http://jira.jboss.com/jira/browse/JBCACHE-726
-Jason