Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/BuilderPool.java @ 9232:5030c46d8cb4
Implemented xpath function that selectes the 'mean year' of a fixation-artifact.
Needs to provide the ArtifactDatabase to the builder implementation.
author | gernotbelger |
---|---|
date | Fri, 06 Jul 2018 13:09:54 +0200 |
parents | 5e38e2924c07 |
children |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/BuilderPool.java Fri Jul 06 13:09:25 2018 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/templating/BuilderPool.java Fri Jul 06 13:09:54 2018 +0200 @@ -20,7 +20,7 @@ import javax.xml.parsers.ParserConfigurationException; import org.apache.log4j.Logger; - +import org.dive4elements.artifacts.CallContext; import org.w3c.dom.Document; import org.w3c.dom.Node; @@ -78,12 +78,7 @@ return document; } - public void build( - List<Builder.NamedConnection> connections, - Node output, - Map<String, Object> parameters - ) - throws SQLException + public void build( final List<Builder.NamedConnection> connections, final Node output, final Map<String, Object> parameters, final CallContext context ) throws SQLException { Builder builder; synchronized (pool) { @@ -93,12 +88,12 @@ } } catch (InterruptedException ie) { - log.debug("Waiting for builder interrupted. Build canceled."); + log.debug("Waiting for builder interrupted. Build canceled.", ie); return; } } try { - builder.build(connections, output, parameters); + builder.build(connections, output, parameters, context); } finally { synchronized (pool) {