From: <ben...@jb...> - 2006-06-16 06:06:26
|
Finally, I am thinking the underlying PojoCacheImpl will implement both PojoCache and Cache API such that: | pulbic class PojoCacheImpl implements PojoCache, Cache | and to switch between PojoCache and Cache interface, you can do like: | PojoCache pc = PojoCacheFactory(PojoCacheConfig); | | pc.attach(pojo); | ... | | // Switch to plain Cache | | Cache c = (Cache)pc; | c.put(fqn, blah, blah); | True that to use plain Cache, you will need to cast it explicitly. But I don't see the frequent usage of Cache api under PojoCache anyway so I think this present a clear separation of interfaces. What do people think? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3951222#3951222 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3951222 |