All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.xmlcalabash.functions.XProcExtensionFunctionDefinition Maven / Gradle / Ivy

package com.xmlcalabash.functions;

import com.xmlcalabash.core.XProcRuntime;
import net.sf.saxon.lib.ExtensionFunctionCall;
import net.sf.saxon.lib.ExtensionFunctionDefinition;
import net.sf.saxon.om.StructuredQName;
import net.sf.saxon.value.SequenceType;

/**
 * Created with IntelliJ IDEA.
 * User: ndw
 * Date: 1/27/13
 * Time: 9:36 AM
 * To change this template use File | Settings | File Templates.
 */
public abstract class XProcExtensionFunctionDefinition extends ExtensionFunctionDefinition {
    protected ThreadLocal tl_runtime = new ThreadLocal() {
        protected synchronized XProcRuntime initialValue() {
            return null;
        }
    };

    public void close() {
        tl_runtime.remove();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy