This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch var-route in repository https://gitbox.apache.org/repos/asf/camel.git
commit c8f17a02cb13543512c28e26185d70f165e48199 Author: Claus Ibsen <claus.ib...@gmail.com> AuthorDate: Sat Feb 10 11:23:30 2024 +0100 CAMEL-20406: Route scoped variables --- .../src/main/java/org/apache/camel/VariableAware.java | 4 ++++ .../main/java/org/apache/camel/spi/VariableRepository.java | 12 ------------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/core/camel-api/src/main/java/org/apache/camel/VariableAware.java b/core/camel-api/src/main/java/org/apache/camel/VariableAware.java index ab82303117c..4fd26d8ea2e 100644 --- a/core/camel-api/src/main/java/org/apache/camel/VariableAware.java +++ b/core/camel-api/src/main/java/org/apache/camel/VariableAware.java @@ -24,6 +24,10 @@ public interface VariableAware { /** * Returns a variable by name. * + * If the variable is of type {@link org.apache.camel.StreamCache} then the repository should ensure to reset the + * stream cache before returning the value, to ensure the content can be read by the Camel end user and would be + * re-readable next time. + * * @param name the name of the variable * @return the value of the given variable or <tt>null</tt> if there is no variable for the given name */ diff --git a/core/camel-api/src/main/java/org/apache/camel/spi/VariableRepository.java b/core/camel-api/src/main/java/org/apache/camel/spi/VariableRepository.java index fba280fcda1..c186e66e1e6 100644 --- a/core/camel-api/src/main/java/org/apache/camel/spi/VariableRepository.java +++ b/core/camel-api/src/main/java/org/apache/camel/spi/VariableRepository.java @@ -29,18 +29,6 @@ public interface VariableRepository extends StaticService, VariableAware { */ String getId(); - /** - * Returns a variable by name. - * - * If the variable is of type {@link org.apache.camel.StreamCache} then the repository should ensure to reset the - * stream cache before returning the value, to ensure the content can be read by the Camel end user and would be - * re-readable next time. - * - * @param name the name of the variable - * @return the value of the given variable or <tt>null</tt> if there is no variable for the given name - */ - Object getVariable(String name); - /** * Removes the given variable *