public abstract class LanguageSupport extends Object implements Language, IsSingleton, CamelContextAware
Language
implementations.Constructor and Description |
---|
LanguageSupport() |
Modifier and Type | Method and Description |
---|---|
CamelContext |
getCamelContext()
Get the
CamelContext |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
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(CamelContext camelContext)
Injects the
CamelContext |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createExpression, createPredicate
public static final String RESOURCE
public LanguageSupport()
public CamelContext getCamelContext()
CamelContextAware
CamelContext
getCamelContext
in interface CamelContextAware
public void setCamelContext(CamelContext camelContext)
CamelContextAware
CamelContext
setCamelContext
in interface CamelContextAware
camelContext
- the Camel contextpublic boolean isSingleton()
IsSingleton
isSingleton
in interface IsSingleton
protected String loadResource(String expression) throws ExpressionIllegalSyntaxException
expression
- the expressionExpressionIllegalSyntaxException
- is thrown if error loading the resourceApache Camel