From: Jeremias Maerki Date: Wed, 28 Oct 2009 09:09:55 +0000 (+0000) Subject: Added missing EventModelFactory to avoid error: X-Git-Tag: fop-1_0~113 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc7b66987e8ab71a5fa0193f4b43d86b9571ab6b;p=xmlgraphics-fop.git 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 --- diff --git a/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory b/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory index 30fe1f5a5..f5c2aab75 100644 --- a/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory +++ b/src/java/META-INF/services/org.apache.fop.events.model.EventModelFactory @@ -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 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. *