public abstract class LanguageSupport extends Object implements org.apache.camel.spi.Language, org.apache.camel.IsSingleton, org.apache.camel.CamelContextAware
Language
implementations.Constructor and Description |
---|
LanguageSupport() |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.CamelContext |
getCamelContext() |
static boolean |
hasSimpleFunction(String expression)
Does the expression include a simple function.
|
boolean |
isSingleton() |
protected String |
loadResource(String expression)
Loads the resource if the given expression is referring to an external resource by using
the syntax resource:scheme:uri.
|
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
public static final String RESOURCE
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public boolean isSingleton()
isSingleton
in interface org.apache.camel.IsSingleton
protected String loadResource(String expression) throws org.apache.camel.ExpressionIllegalSyntaxException
expression
- the expressionorg.apache.camel.ExpressionIllegalSyntaxException
- is thrown if error loading the resourcepublic static boolean hasSimpleFunction(String expression)
expression
- the expressionApache Camel