- From: Romain Deltour <rdeltour@gmail.com>
- Date: Tue, 6 Sep 2011 09:28:25 +0200
- To: Florent Georges <fgeorges@fgeorges.org>
- Cc: XProc Dev <xproc-dev@w3.org>
There is now a new API in XProcConfiguration with a newStep(XProcRuntime, XAtomicStep) method that can be overridden by a subclass to extend the step registration mechanism. See: https://github.com/ndw/xmlcalabash1/blob/master/src/com/xmlcalabash/core/XProcConfiguration.java #L263 http://code.google.com/p/xmlcalabash/issues/detail?id=134 In our project we're using it to register steps as OSGi services. Our XProcConfiguration relies on a "step registry" with a similar registerExtensionStep() method. HTH, Romain Le 6 sept. 11 à 01:16, Florent Georges a écrit : > Hi, > > I couldn't find any way in Calabash to add an implementation > programmatically on XProcConfiguration (that is, saying step X is > a extension step implemented by Java class Y). The only way is > to parse a config file, but there is no way to add it directly. > > Shouldn't a system using Calabash and configuring it from its > API be able to declare such steps directly on the config object? > E.g. using a new method: > > public void registerExtensionStep(QName name, String clazz) { > implementations.put(name, clazz); > } > > Regards, > > -- > Florent Georges > http://fgeorges.org/ > http://h2oconsulting.be/ >
Received on Tuesday, 6 September 2011 07:28:57 UTC