You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2004/12/23 01:18:43 UTC
cvs commit: ws-axis/java/src/org/apache/axis/components/image ImageIOFactory.java
dims 2004/12/22 16:18:43
Modified: java/src/org/apache/axis/components/image
ImageIOFactory.java
Log:
JDK13IO is optional too...
Revision Changes Path
1.9 +8 -2 ws-axis/java/src/org/apache/axis/components/image/ImageIOFactory.java
Index: ImageIOFactory.java
===================================================================
RCS file: /home/cvs/ws-axis/java/src/org/apache/axis/components/image/ImageIOFactory.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ImageIOFactory.java 25 Feb 2004 14:02:32 -0000 1.8
+++ ImageIOFactory.java 23 Dec 2004 00:18:43 -0000 1.9
@@ -18,6 +18,7 @@
import org.apache.axis.AxisProperties;
import org.apache.axis.components.logger.LogFactory;
+import org.apache.axis.utils.ClassUtils;
import org.apache.commons.logging.Log;
/**
@@ -59,7 +60,12 @@
* This shouldn't be needed, but seems to be a common feel-good:
*/
if (imageIO == null) {
- imageIO = new JDK13IO();
+ try {
+ Class cls = ClassUtils.forName("org.apache.axis.components.image.JDK13IO");
+ imageIO = (ImageIO)cls.newInstance();
+ } catch (Exception e) {
+ log.debug("ImageIOFactory: No matching ImageIO found",e);
+ }
}
log.debug("axis.ImageIO: " + imageIO.getClass().getName());