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
This commit is contained in:
Jeremias Maerki 2009-10-28 09:09:55 +00:00
parent 7959a7a261
commit dc7b66987e
2 changed files with 13 additions and 0 deletions

View 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

View 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.
*