]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Added missing EventModelFactory to avoid error:
authorJeremias Maerki <jeremias@apache.org>
Wed, 28 Oct 2009 09:09:55 +0000 (09:09 +0000)
committerJeremias Maerki <jeremias@apache.org>
Wed, 28 Oct 2009 09:09:55 +0000 (09:09 +0000)
  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

src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory
src/java/org/apache/fop/accessibility/AccessibilityEventProducer.java

index 30fe1f5a50c4eb19a1a68e2de16d52c4ddb54cb9..f5c2aab755cf5f30b9c3af385905f177cd01e961 100644 (file)
@@ -5,3 +5,4 @@ org.apache.fop.render.pcl.PCLEventProducer$EventModelFactory
 org.apache.fop.render.pdf.PDFEventProducer$EventModelFactory
 org.apache.fop.render.ps.PSEventProducer$EventModelFactory
 org.apache.fop.render.rtf.RTFEventProducer$EventModelFactory
+org.apache.fop.accessibility.AccessibilityEventProducer$EventModelFactory
index 9a74b7ca895d7b4cb3ff4a0e4e1ef5325a8d3d0c..3744ca0b4773e8adfc1f4ac78cc0c25a81334535 100644 (file)
@@ -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.
      *