Package org.apache.camel.language.simple
Class SimpleLanguage
- java.lang.Object
-
- org.apache.camel.support.LanguageSupport
-
- org.apache.camel.language.simple.SimpleLanguage
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.camel.CamelContextAware
,org.apache.camel.IsSingleton
,org.apache.camel.Service
,org.apache.camel.spi.Language
,org.apache.camel.StaticService
- Direct Known Subclasses:
FileLanguage
@Language("simple") public class SimpleLanguage extends org.apache.camel.support.LanguageSupport implements org.apache.camel.StaticService
The Camel simple language.
-
-
Constructor Summary
Constructors Constructor Description SimpleLanguage()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.apache.camel.Expression
createExpression(String expression)
org.apache.camel.Expression
createExpression(String expression, Class<?> resultType)
org.apache.camel.Expression
createExpression(String expression, Object[] properties)
org.apache.camel.Predicate
createPredicate(String expression)
org.apache.camel.Predicate
createPredicate(String expression, Object[] properties)
static org.apache.camel.Expression
expression(String expression)
Deprecated.static boolean
hasSimpleFunction(String expression)
Does the expression include a simple function.void
init()
static org.apache.camel.Predicate
predicate(String predicate)
Deprecated.static org.apache.camel.Expression
simple(String expression)
Deprecated.static org.apache.camel.Expression
simple(String expression, Class<?> resultType)
Deprecated.void
start()
void
stop()
-
Methods inherited from class org.apache.camel.support.LanguageSupport
getCamelContext, isDynamicResource, isSingleton, isStaticResource, loadResource, property, setCamelContext
-
-
-
-
Method Detail
-
init
public void init()
- Specified by:
init
in interfaceorg.apache.camel.Service
-
start
public void start()
- Specified by:
start
in interfaceorg.apache.camel.Service
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.apache.camel.Service
-
createPredicate
public org.apache.camel.Predicate createPredicate(String expression)
- Specified by:
createPredicate
in interfaceorg.apache.camel.spi.Language
-
createPredicate
public org.apache.camel.Predicate createPredicate(String expression, Object[] properties)
- Specified by:
createPredicate
in interfaceorg.apache.camel.spi.Language
-
createExpression
public org.apache.camel.Expression createExpression(String expression, Object[] properties)
- Specified by:
createExpression
in interfaceorg.apache.camel.spi.Language
-
createExpression
public org.apache.camel.Expression createExpression(String expression)
- Specified by:
createExpression
in interfaceorg.apache.camel.spi.Language
-
simple
@Deprecated public static org.apache.camel.Expression simple(String expression)
Deprecated.Creates a newExpression
. Important: If you need to use a predicate (function to return true|false) then usepredicate(String)
instead.
-
simple
@Deprecated public static org.apache.camel.Expression simple(String expression, Class<?> resultType)
Deprecated.Creates a newExpression
(orPredicate
if the resultType is a Boolean, or boolean type).
-
createExpression
public org.apache.camel.Expression createExpression(String expression, Class<?> resultType)
-
expression
@Deprecated public static org.apache.camel.Expression expression(String expression)
Deprecated.Creates a newExpression
. Important: If you need to use a predicate (function to return true|false) then usepredicate(String)
instead.
-
predicate
@Deprecated public static org.apache.camel.Predicate predicate(String predicate)
Deprecated.Creates a newPredicate
.
-
hasSimpleFunction
public static boolean hasSimpleFunction(String expression)
Does the expression include a simple function.- Parameters:
expression
- the expression- Returns:
- true if one or more simple function is included in the expression
-
-