@Language(value="simple")
public class SimpleLanguage
extends org.apache.camel.support.LanguageSupport
implements org.apache.camel.StaticService
SimpleDateFormat
patternsSimpleDateFormat
timezones and patternsBeanLanguage
org.apache.camel.component.properties.PropertiesComponent
.
The locations parameter is optional and you can enter multiple locations separated with comma.
Constructor and Description |
---|
SimpleLanguage()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Expression |
createExpression(String expression) |
org.apache.camel.Expression |
createExpression(String expression,
Class<?> resultType) |
org.apache.camel.Predicate |
createPredicate(String expression) |
static org.apache.camel.Expression |
expression(String expression)
Creates a new
Expression . |
static boolean |
hasSimpleFunction(String expression)
Does the expression include a simple function.
|
void |
init() |
static org.apache.camel.Predicate |
predicate(String predicate)
Creates a new
Predicate . |
static org.apache.camel.Expression |
simple(String expression)
Creates a new
Expression . |
static org.apache.camel.Expression |
simple(String expression,
Class<?> resultType)
Creates a new
Expression (or Predicate
if the resultType is a Boolean, or boolean type). |
void |
start() |
void |
stop() |
getCamelContext, isSingleton, loadResource, setCamelContext
public void init()
init
in interface org.apache.camel.Service
public void start()
start
in interface org.apache.camel.Service
public void stop()
stop
in interface org.apache.camel.Service
public org.apache.camel.Predicate createPredicate(String expression)
createPredicate
in interface org.apache.camel.spi.Language
public org.apache.camel.Expression createExpression(String expression)
createExpression
in interface org.apache.camel.spi.Language
public static org.apache.camel.Expression simple(String expression)
Expression
.
Important: If you need to use a predicate (function to return true|false) then use
predicate(String)
instead.public static org.apache.camel.Expression simple(String expression, Class<?> resultType)
Expression
(or Predicate
if the resultType is a Boolean, or boolean type).public org.apache.camel.Expression createExpression(String expression, Class<?> resultType)
public static org.apache.camel.Expression expression(String expression)
Expression
.
Important: If you need to use a predicate (function to return true|false) then use
predicate(String)
instead.public static org.apache.camel.Predicate predicate(String predicate)
Predicate
.public static boolean hasSimpleFunction(String expression)
expression
- the expressionApache Camel