This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch xpath
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 08c28732654627e493aadb3e726fab917eb70d0a
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Apr 23 12:46:35 2019 +0200

    CAMEL-13113: Add @Groovy annotation as camel-script was removed
---
 .../java/org/apache/camel/language/groovy/Groovy.java} | 18 +++++++++---------
 .../main/java/org/apache/camel/language/mvel/MVEL.java |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

diff --git 
a/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java 
b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/Groovy.java
similarity index 76%
copy from 
components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java
copy to 
components/camel-groovy/src/main/java/org/apache/camel/language/groovy/Groovy.java
index ea0fcf0..67cd11c 100644
--- 
a/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java
+++ 
b/components/camel-groovy/src/main/java/org/apache/camel/language/groovy/Groovy.java
@@ -14,7 +14,9 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.camel.language.mvel;
+package org.apache.camel.language.groovy;
+
+import org.apache.camel.support.language.LanguageAnnotation;
 
 import java.lang.annotation.Documented;
 import java.lang.annotation.ElementType;
@@ -22,16 +24,14 @@ import java.lang.annotation.Retention;
 import java.lang.annotation.RetentionPolicy;
 import java.lang.annotation.Target;
 
-import org.apache.camel.support.language.LanguageAnnotation;
-
 /**
- * An annotation for injection of <a href="http://mvel.codehaus.org/";>MVEL</a>
- * expressions into method parameters, fields or properties
+ * Used to inject a groovy expression into a field, property, method or 
parameter when using
+ * <a href="http://camel.apache.org/bean-integration.html";>Bean 
Integration</a>.
  */
 @Retention(RetentionPolicy.RUNTIME)
 @Documented
-@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
-@LanguageAnnotation(language = "mvel")
-public @interface MVEL {
+@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER })
+@LanguageAnnotation(language = "groovy")
+public @interface Groovy {
     String value();
-}
\ No newline at end of file
+}
diff --git 
a/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java 
b/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java
index ea0fcf0..68be59b 100644
--- 
a/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java
+++ 
b/components/camel-mvel/src/main/java/org/apache/camel/language/mvel/MVEL.java
@@ -25,7 +25,7 @@ import java.lang.annotation.Target;
 import org.apache.camel.support.language.LanguageAnnotation;
 
 /**
- * An annotation for injection of <a href="http://mvel.codehaus.org/";>MVEL</a>
+ * An annotation for injection of MVEL
  * expressions into method parameters, fields or properties
  */
 @Retention(RetentionPolicy.RUNTIME)

Reply via email to