camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r560348 - /activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
Date Fri, 27 Jul 2007 18:39:21 GMT
Author: jstrachan
Date: Fri Jul 27 11:39:20 2007
New Revision: 560348

URL: http://svn.apache.org/viewvc?view=rev&rev=560348
Log:
added helper method

Modified:
    activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java

Modified: activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java?view=diff&rev=560348&r1=560347&r2=560348
==============================================================================
--- activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
(original)
+++ activemq/camel/trunk/components/camel-juel/src/main/java/org/apache/camel/language/juel/JuelExpression.java
Fri Jul 27 11:39:20 2007
@@ -34,6 +34,10 @@
     private final Class<?> type;
     private ExpressionFactory expressionFactory;
 
+    public static JuelExpression el(String expression) {
+        return new JuelExpression(expression, Object.class);
+    }
+
     public JuelExpression(String expression, Class<?> type) {
         this.expression = expression;
         this.type = type;



Mime
View raw message