[jboss-dev-forums] [Design of JBossCache] - Re: Name change for PojoCache annotation

genman do-not-reply at jboss.com
Tue Nov 14 21:17:18 EST 2006


You could use something like "@Entity" like the EJB spec has. But I guess the purpose of the Pojo cache is to provide fine-grained replication, so "@Replicated" or "@Replicable" or something would be okay. "@Replicable" means "capable of replication, which might make more sense than "@Replicated" which sort of seems to mean that it's already been replicated ... which isn't exactly true.

For inheritence, it seems appropriate to add an attribute rather than a separate annotation, for example:

@Replicable(instanceOf=true)
or
@Replicable(subclasses=true)

There might be some sort of relation term that would fit better than "instanceof", that means "child classes also".


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986009#3986009

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986009



More information about the jboss-dev-forums mailing list