aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2009-10-28 09:09:55 +0000
committerJeremias Maerki <jeremias@apache.org>2009-10-28 09:09:55 +0000
commitdc7b66987e8ab71a5fa0193f4b43d86b9571ab6b (patch)
tree7d7138361f1a802e303426ac58fc1de1e141799c /src/java/org/apache
parent7959a7a26111de8c60cfe7e195d5d2ddf31b067f (diff)
downloadxmlgraphics-fop-dc7b66987e8ab71a5fa0193f4b43d86b9571ab6b.tar.gz
xmlgraphics-fop-dc7b66987e8ab71a5fa0193f4b43d86b9571ab6b.zip
Added missing EventModelFactory to avoid error:
java.lang.IllegalStateException: Event model doesn't contain the definition for org.apache.fop.accessibility.AccessibilityEventProducer git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@830476 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache')
-rw-r--r--src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java
index 9a74b7ca8..3744ca0b4 100644
--- a/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java
+++ b/src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java
@@ -21,6 +21,8 @@ package org.apache.fop.accessibility;
import org.apache.fop.events.EventBroadcaster;
import org.apache.fop.events.EventProducer;
+import org.apache.fop.events.model.AbstractEventModelFactory;
+import org.apache.fop.events.model.EventModel;
/**
* Event producer for accessibility-related events.
@@ -44,6 +46,16 @@ public interface AccessibilityEventProducer extends EventProducer {
}
}
+ /** Event model factory for Accessibility. */
+ public static class EventModelFactory extends AbstractEventModelFactory {
+
+ /** {@inheritDoc} */
+ public EventModel createEventModel() {
+ return loadModel(getClass(), "event-model.xml");
+ }
+
+ }
+
/**
* The structure tree is missing in the XML file.
*