[infinispan-dev] Util.getInstance

Mircea Markus mircea.markus at jboss.com
Thu Sep 3 05:38:57 EDT 2009


There are a bunch of getInstance methods in Util for instantiating  
objects that throw very specific checked exceptions(throws  
IllegalAccessException, InstantiationException).
I'm thinking to remove this checked exceptions and wrap them in an  
runtime CacheException, to simplify the calling code that catches them  
and wraps them in a CacheException itself. If one would need to be  
informed weather a class couldn't be instantiated, it can catch the  
thrown CacheException.
Wdyt?

Cheers,
Mircea



More information about the infinispan-dev mailing list