aboutsummaryrefslogtreecommitdiffstats
path: root/application/src
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2022-02-28 19:58:21 +0100
committergjoranv <gv@verizonmedia.com>2022-02-28 19:59:47 +0100
commit34a9b366f7afb3203c5ba391886002c3a8d55554 (patch)
treebc01ce63ef03185dd5c17539d064a98e00f0ff29 /application/src
parent58d82df793252876347bcd9b741e2f9e0637b4d3 (diff)
Suppress removal warnigns for docproc APIs and add TODOs for
.. methods where no replacement is available yet.
Diffstat (limited to 'application/src')
-rw-r--r--application/src/main/java/com/yahoo/application/container/DocumentProcessing.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/src/main/java/com/yahoo/application/container/DocumentProcessing.java b/application/src/main/java/com/yahoo/application/container/DocumentProcessing.java
index f86c11d431c..f89e79c4cfa 100644
--- a/application/src/main/java/com/yahoo/application/container/DocumentProcessing.java
+++ b/application/src/main/java/com/yahoo/application/container/DocumentProcessing.java
@@ -59,8 +59,10 @@ public final class DocumentProcessing {
* @return Progress.DONE or Progress.FAILED
* @throws RuntimeException if one of the document processors in the chain throws, or if the calling thread is interrupted
*/
+ @SuppressWarnings("removal") // TODO Vespa 8: remove
public DocumentProcessor.Progress process(ComponentSpecification chain, com.yahoo.docproc.Processing processing) {
DocprocExecutor executor = getExecutor(chain);
+ // TODO Vespa 8: Use TBD instead, this method will be removed
processing.setDocprocServiceRegistry(handler.getDocprocServiceRegistry());
return executor.processUntilDone(processing);
}
@@ -78,12 +80,15 @@ public final class DocumentProcessing {
* @return any Progress
* @throws RuntimeException if one of the document processors in the chain throws
*/
+ @SuppressWarnings("removal") // TODO Vespa 8: remove
public DocumentProcessor.Progress processOnce(ComponentSpecification chain, com.yahoo.docproc.Processing processing) {
DocprocExecutor executor = getExecutor(chain);
+ // TODO Vespa 8: Use TBD instead, this method will be removed
processing.setDocprocServiceRegistry(handler.getDocprocServiceRegistry());
return executor.process(processing);
}
+ @SuppressWarnings("removal") // TODO Vespa 8: remove
private DocprocExecutor getExecutor(ComponentSpecification chain) {
DocprocService service = handler.getDocprocServiceRegistry().getComponent(chain);
if (service == null) {