Class CSimpleLanguage

  • 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

    @Language("csimple")
    public class CSimpleLanguage
    extends org.apache.camel.support.LanguageSupport
    implements org.apache.camel.StaticService
    • Constructor Detail

      • CSimpleLanguage

        public CSimpleLanguage()
    • Method Detail

      • getConfigResource

        public String getConfigResource()
      • setConfigResource

        public void setConfigResource​(String configResource)
      • addImport

        public void addImport​(String imports)
        Adds an import line
        Parameters:
        imports - import such as com.foo.MyClass
      • addAliases

        public void addAliases​(String key,
                               String value)
        Adds an alias
        Parameters:
        key - the key
        value - the value
      • init

        public void init()
        Specified by:
        init in interface org.apache.camel.Service
      • start

        public void start()
        Specified by:
        start in interface org.apache.camel.Service
      • stop

        public void stop()
        Specified by:
        stop in interface org.apache.camel.Service
      • createPredicate

        public org.apache.camel.Predicate createPredicate​(String expression)
        Specified by:
        createPredicate in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression,
                                                            Object[] properties)
        Specified by:
        createExpression in interface org.apache.camel.spi.Language
      • createExpression

        public org.apache.camel.Expression createExpression​(String expression)
        Specified by:
        createExpression in interface org.apache.camel.spi.Language