1 55 56 package org.jboss.axis.components.image; 57 58 import org.jboss.axis.AxisProperties; 59 import org.jboss.logging.Logger; 60 61 68 public class ImageIOFactory 69 { 70 private static Logger log = Logger.getLogger(ImageIOFactory.class.getName()); 71 72 static 73 { 74 AxisProperties.setClassOverrideProperty(ImageIO.class, "axis.ImageIO"); 75 76 AxisProperties.setClassDefaults(ImageIO.class, 81 new String []{ 82 "org.jboss.axis.components.image.MerlinIO", 83 "org.jboss.axis.components.image.JimiIO", 84 "org.jboss.axis.components.image.JDK13IO", 85 }); 86 } 87 88 95 public static ImageIO getImageIO() 96 { 97 ImageIO imageIO = (ImageIO)AxisProperties.newInstance(ImageIO.class); 98 99 102 if (imageIO == null) 103 { 104 imageIO = new JDK13IO(); 105 } 106 107 log.debug("axis.ImageIO: " + imageIO.getClass().getName()); 108 return imageIO; 109 } 110 } 111 112 | Popular Tags |