diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-03-27 09:51:14 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-03-27 09:51:14 +0000 |
commit | 0a2d149c230858d311f6d4d776072704a0096ac2 (patch) | |
tree | 3dcbf5ed7be99ab2a93f5911ff2ff40e10364fc6 /src/java/org/apache/fop/image/ImageFactory.java | |
parent | 60fc6535d1a4bb48faea00e1d4793d18bc0f7f98 (diff) | |
download | xmlgraphics-fop-0a2d149c230858d311f6d4d776072704a0096ac2.tar.gz xmlgraphics-fop-0a2d149c230858d311f6d4d776072704a0096ac2.zip |
Merged Temp_API_Finalization branch back into FOP Trunk:
Finalized API according to the plan in the Wiki: http://wiki.apache.org/xmlgraphics-fop/ApiDesign
In addition to that:
Deprecated the rest of the Fop constructors.
Refactored the FopServlet a bit to make it more versatile and still easy to understand. The FopPrintServlet is now a subclass of FopServlet.
Some further cleanup on the way.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@389086 13f79535-47bb-0310-9956-ffa450edef68
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 |