[jboss-dev-forums] [Design of JBossCache] - Re: Excessive type safety warnings ...
genman
do-not-reply at jboss.com
Thu May 24 14:37:10 EDT 2007
The state transfer classes, notification classes, marshaling, cache loaders, interceptors which use Fqn and Node need some sort of parameters... Or perhaps maybe wildcards or something.
So, for example, you have a CacheStoreInterceptor:
| public class CacheLoaderInterceptor extends BaseCacheLoaderInterceptor implements CacheStoreInterceptorMBean
parameterized, needs to be something like:
| public class CacheLoaderInterceptor<K, V, F> extends BaseCacheLoaderInterceptor<K, V, F> implements CacheStoreInterceptorMBean
Where K and V are the Node key and value, and you have to include the Fqn type as well.
Actually, I'm not really any sort of generics expert. There might be some way to use wildcards or something to hide all this.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048448#4048448
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048448
More information about the jboss-dev-forums
mailing list