Force the use of the package's class loader since JMagick class may not be available with current Thread's class loader (eg. application servers such as JBoss AS 7...)

This commit is contained in:
guinotphil 2013-11-15 15:36:57 +01:00
parent 1af9a0c48c
commit 371aa4298b

View File

@ -46,7 +46,7 @@ import java.util.Locale;
*/
abstract class JMagickImageReaderSpiSupport extends ImageReaderSpi {
final static boolean AVAILABLE = SystemUtil.isClassAvailable("com.twelvemonkeys.imageio.plugins.jmagick.JMagick");
final static boolean AVAILABLE = SystemUtil.isClassAvailable("com.twelvemonkeys.imageio.plugins.jmagick.JMagick", JMagickImageReaderSpiSupport.class);
/**
* Creates a JMagickImageReaderSpiSupport