Class DefaultRouteTemplateContext

java.lang.Object
org.apache.camel.model.DefaultRouteTemplateContext
All Implemented Interfaces:
org.apache.camel.RouteTemplateContext, org.apache.camel.spi.HasCamelContext

public final class DefaultRouteTemplateContext extends Object implements org.apache.camel.RouteTemplateContext
Default RouteTemplateContext.
  • Constructor Details

    • DefaultRouteTemplateContext

      public DefaultRouteTemplateContext(org.apache.camel.CamelContext camelContext)
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • bind

      public void bind(String id, Object bean)
      Specified by:
      bind in interface org.apache.camel.RouteTemplateContext
    • bind

      public void bind(String id, Class<?> type, Object bean)
      Specified by:
      bind in interface org.apache.camel.RouteTemplateContext
    • bind

      public void bind(String id, Class<?> type, Supplier<Object> bean)
      Specified by:
      bind in interface org.apache.camel.RouteTemplateContext
    • bindAsPrototype

      public void bindAsPrototype(String id, Class<?> type, Supplier<Object> bean)
      Specified by:
      bindAsPrototype in interface org.apache.camel.RouteTemplateContext
    • getProperty

      public Object getProperty(String name)
      Specified by:
      getProperty in interface org.apache.camel.RouteTemplateContext
    • getProperty

      public <T> T getProperty(String name, Class<?> type)
      Specified by:
      getProperty in interface org.apache.camel.RouteTemplateContext
    • setParameter

      public void setParameter(String name, Object value)
      Specified by:
      setParameter in interface org.apache.camel.RouteTemplateContext
    • getParameters

      public Map<String,Object> getParameters()
      Specified by:
      getParameters in interface org.apache.camel.RouteTemplateContext
    • hasParameter

      public boolean hasParameter(String name)
      Specified by:
      hasParameter in interface org.apache.camel.RouteTemplateContext
    • getLocalBeanRepository

      public org.apache.camel.spi.BeanRepository getLocalBeanRepository()
      Specified by:
      getLocalBeanRepository in interface org.apache.camel.RouteTemplateContext
    • getConfigurer

      public Consumer<org.apache.camel.RouteTemplateContext> getConfigurer()
      Specified by:
      getConfigurer in interface org.apache.camel.RouteTemplateContext
    • setConfigurer

      public void setConfigurer(Consumer<org.apache.camel.RouteTemplateContext> configurer)
      Specified by:
      setConfigurer in interface org.apache.camel.RouteTemplateContext