diff options
author | Finn Bock <bckfnn@apache.org> | 2004-09-24 10:31:22 +0000 |
---|---|---|
committer | Finn Bock <bckfnn@apache.org> | 2004-09-24 10:31:22 +0000 |
commit | 1a797252805d6dde85e5003284136c9f9aefe521 (patch) | |
tree | 86379ed2e9670ce3536e5a4e70eacf18a93bed2a /src/java/org/apache/fop/apps | |
parent | 3242b5aeb4eb1b5a4877e0f7b7b9361aaa0af097 (diff) | |
download | xmlgraphics-fop-1a797252805d6dde85e5003284136c9f9aefe521.tar.gz xmlgraphics-fop-1a797252805d6dde85e5003284136c9f9aefe521.zip |
Moved from element mapping class names to element mapping objects.
This solves a potential problem where Class.forName() can't load the
element mapping class because the element mapping is only available
in a classloader below the one that loaded fop.jar.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197974 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/apps')
-rw-r--r-- | src/java/org/apache/fop/apps/FOUserAgent.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/org/apache/fop/apps/FOUserAgent.java b/src/java/org/apache/fop/apps/FOUserAgent.java index 25e35eb9f..fda47175e 100644 --- a/src/java/org/apache/fop/apps/FOUserAgent.java +++ b/src/java/org/apache/fop/apps/FOUserAgent.java @@ -35,6 +35,7 @@ import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; // FOP +import org.apache.fop.fo.ElementMapping; import org.apache.fop.pdf.PDFEncryptionParams; import org.apache.fop.render.Renderer; @@ -113,11 +114,11 @@ public class FOUserAgent { * Add the element mapping with the given class name. * @param mappingClassName the class name representing the element mapping. */ - public void addElementMapping(String mappingClassName) { + public void addElementMapping(ElementMapping elementMapping) { if (additionalElementMappings == null) { additionalElementMappings = new ArrayList(); } - additionalElementMappings.add(mappingClassName); + additionalElementMappings.add(elementMapping); } /** |