[
https://issues.apache.org/jira/browse/JENA-1435?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16265454#comment-16265454
]
Andy Seaborne commented on JENA-1435:
-------------------------------------
It will be a per-server registry (to cover the case of >1 embedded fuseki in
one process). The API for this is the area I need to finish up; currently, the
prototype dives into Fuseki internals.
May be {{ServiceLoader}} eventually but for now it is complicated enough. For
embedded Fuseki, the dependency relationship is inverted - the application
depends on Fuseki so no need for {{ServiceLoader}} to provide runtime binding.
APi calls to register new servlets will work.
{{ServiceLoader}} does not solve the classpath problems for a combined jar
({{java -jar}}) or a WAR file. It just means no need for "loadClass" in
assemblers. What we get asked about is related to the repacking of jars.
> Provide extensibility of Fuseki with new services.
> --------------------------------------------------
>
> Key: JENA-1435
> URL: https://issues.apache.org/jira/browse/JENA-1435
> Project: Apache Jena
> Issue Type: Improvement
> Components: Fuseki
> Affects Versions: Jena 3.5.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
>
> This ticket is to provide a mechanism so that application code can add custom
> operations.
> The built-in set includes the operations usually in {{/dataset/sparql}},
> {{/dataset/update}} etc. as configured by {{fuseki:service*}}. These are also
> available as requests on the dataset directly as {{/dataset}}. For query,
> either parameter {{?query=}} or a content type {{application/sparql-query}}.
> Example extensions:
> * An RDF Patch processor
> * Upload and convert non-RDF formats
> * Extract custom output formats
> * Filtering requests before passing onto the general operation
> This extension point would support:
> * dispatch by operation name
> * dispatch by Content-Type
> Dispatch by HTTP parameters will be designed for but not enabled.
> See also JENA-1400 (extensible operation names).
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)