Package org.apache.camel.language.groovy
Class GroovyLanguage
java.lang.Object
org.apache.camel.support.LanguageSupport
org.apache.camel.support.TypedLanguageSupport
org.apache.camel.language.groovy.GroovyLanguage
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.IsSingleton,org.apache.camel.Service,org.apache.camel.spi.HasCamelContext,org.apache.camel.spi.Language,org.apache.camel.spi.ScriptingLanguage
@Language("groovy")
public class GroovyLanguage
extends org.apache.camel.support.TypedLanguageSupport
implements org.apache.camel.spi.ScriptingLanguage, org.apache.camel.Service
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.camel.support.LanguageSupport
RESOURCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(String expression) createPredicate(String expression) <T> Tstatic GroovyExpressionvoidstart()voidstop()booleanvalidateExpression(String expression) booleanvalidatePredicate(String expression) Methods inherited from class org.apache.camel.support.TypedLanguageSupport
createExpressionMethods inherited from class org.apache.camel.support.LanguageSupport
getCamelContext, hasSimpleFunction, isDynamicResource, isSingleton, isStaticResource, loadResource, property, setCamelContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.spi.Language
createPredicateMethods inherited from interface org.apache.camel.Service
build, close, init
-
Constructor Details
-
GroovyLanguage
public GroovyLanguage()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceorg.apache.camel.Service
-
stop
public void stop()- Specified by:
stopin interfaceorg.apache.camel.Service
-
groovy
-
createPredicate
- Specified by:
createPredicatein interfaceorg.apache.camel.spi.Language
-
createExpression
- Specified by:
createExpressionin interfaceorg.apache.camel.spi.Language
-
evaluate
- Specified by:
evaluatein interfaceorg.apache.camel.spi.ScriptingLanguage
-
validateExpression
- Throws:
GroovyValidationException
-
validatePredicate
- Throws:
GroovyValidationException
-