diff options
Diffstat (limited to 'src/java/org/apache/fop/image/ImageFactory.java')
-rw-r--r-- | src/java/org/apache/fop/image/ImageFactory.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/image/ImageFactory.java b/src/java/org/apache/fop/image/ImageFactory.java index e41ceb858..ce559b360 100644 --- a/src/java/org/apache/fop/image/ImageFactory.java +++ b/src/java/org/apache/fop/image/ImageFactory.java @@ -50,13 +50,14 @@ public final class ImageFactory { */ protected static Log log = LogFactory.getLog(FopImage.class); - private static ImageFactory factory = new ImageFactory(); - private HashMap imageMimeTypes = new HashMap(); private ImageCache cache = new ContextImageCache(true); - private ImageFactory() { + /** + * Main constructor for the ImageFactory. + */ + public ImageFactory() { /* @todo The mappings set up below of image mime types to implementing * classes should be made externally configurable */ @@ -124,15 +125,6 @@ public final class ImageFactory { } /** - * Get static image factory instance. - * - * @return the image factory instance - */ - public static ImageFactory getInstance() { - return factory; - } - - /** * Get the url string from a wrapped url. * * @param href the input wrapped url |