aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2006-03-06 07:59:52 +0000
committerJeremias Maerki <jeremias@apache.org>2006-03-06 07:59:52 +0000
commit8312edf81df1a2367eb738f920c825d7c0cca407 (patch)
tree1f1917056ec1e0ff7ad55cfcfc04b568ec28a6a5 /src
parent8b9f42a3899a365d54588f0a1e3b0fd8c1d45018 (diff)
downloadxmlgraphics-fop-8312edf81df1a2367eb738f920c825d7c0cca407.tar.gz
xmlgraphics-fop-8312edf81df1a2367eb738f920c825d7c0cca407.zip
Removed duplicate entry in Renderer list.
Register FOEventHandlers using Service discovery, too. Removed superfluous discovery and registration methods. Renamed META-INF file to match the pattern established in the sandbox. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@383491 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/META-INF/services/org.apache.fop.fo.FOEventHandler1
-rw-r--r--src/java/META-INF/services/org.apache.fop.render.Renderer (renamed from src/java/META-INF/services/org.apache.fop.render.AbstractRendererMaker)1
-rw-r--r--src/java/org/apache/fop/render/RendererFactory.java18
3 files changed, 2 insertions, 18 deletions
diff --git a/src/java/META-INF/services/org.apache.fop.fo.FOEventHandler b/src/java/META-INF/services/org.apache.fop.fo.FOEventHandler
new file mode 100644
index 000000000..fdd42f993
--- /dev/null
+++ b/src/java/META-INF/services/org.apache.fop.fo.FOEventHandler
@@ -0,0 +1 @@
+org.apache.fop.render.rtf.RTFFOEventHandlerMaker \ No newline at end of file
diff --git a/src/java/META-INF/services/org.apache.fop.render.AbstractRendererMaker b/src/java/META-INF/services/org.apache.fop.render.Renderer
index 7a5cac9a9..fe943927d 100644
--- a/src/java/META-INF/services/org.apache.fop.render.AbstractRendererMaker
+++ b/src/java/META-INF/services/org.apache.fop.render.Renderer
@@ -3,7 +3,6 @@ org.apache.fop.render.ps.PSRendererMaker
org.apache.fop.render.txt.TXTRendererMaker
org.apache.fop.render.bitmap.PNGRendererMaker
org.apache.fop.render.bitmap.TIFFRendererMaker
-org.apache.fop.render.bitmap.TIFFRendererMaker
org.apache.fop.render.xml.XMLRendererMaker
org.apache.fop.render.awt.AWTRendererMaker
org.apache.fop.render.print.PrintRendererMaker \ No newline at end of file
diff --git a/src/java/org/apache/fop/render/RendererFactory.java b/src/java/org/apache/fop/render/RendererFactory.java
index 264d34edf..c6d4f479e 100644
--- a/src/java/org/apache/fop/render/RendererFactory.java
+++ b/src/java/org/apache/fop/render/RendererFactory.java
@@ -1,5 +1,5 @@
/*
- * Copyright 2004-2005 The Apache Software Foundation.
+ * Copyright 2004-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -54,26 +54,10 @@ public class RendererFactory {
* Main constructor.
*/
public RendererFactory() {
- registerStandardRenderers();
discoverRenderers();
-
- registerStandardEventHandlers();
discoverFOEventHandlers();
}
- private void registerStandardRenderers() {
- Iterator rendererMakers = Service.providers(AbstractRendererMaker.class);
- if (rendererMakers != null) {
- while (rendererMakers.hasNext()) {
- addRendererMaker((String) rendererMakers.next());
- }
- }
- }
-
- private void registerStandardEventHandlers() {
- addFOEventHandlerMaker(new org.apache.fop.render.rtf.RTFFOEventHandlerMaker());
- }
-
/**
* Add a new RendererMaker. If another maker has already been registered for a
* particular MIME type, this call overwrites the existing one.