Package org.apache.camel.model
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
DefaultRouteTemplateContext.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.camel.RouteTemplateContext
org.apache.camel.RouteTemplateContext.BeanSupplier<T extends Object>
-
-
Constructor Summary
Constructors Constructor Description DefaultRouteTemplateContext(org.apache.camel.CamelContext camelContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(String id, Class<?> type, Object bean)voidbind(String id, Class<?> type, Supplier<Object> bean)voidbind(String id, Object bean)voidbindAsPrototype(String id, Class<?> type, Supplier<Object> bean)org.apache.camel.CamelContextgetCamelContext()Consumer<org.apache.camel.RouteTemplateContext>getConfigurer()org.apache.camel.spi.BeanRepositorygetLocalBeanRepository()Map<String,Object>getParameters()ObjectgetProperty(String name)<T> TgetProperty(String name, Class<?> type)booleanhasParameter(String name)voidsetConfigurer(Consumer<org.apache.camel.RouteTemplateContext> configurer)voidsetParameter(String name, Object value)
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
bind
public void bind(String id, Object bean)
- Specified by:
bindin interfaceorg.apache.camel.RouteTemplateContext
-
bind
public void bind(String id, Class<?> type, Object bean)
- Specified by:
bindin interfaceorg.apache.camel.RouteTemplateContext
-
bind
public void bind(String id, Class<?> type, Supplier<Object> bean)
- Specified by:
bindin interfaceorg.apache.camel.RouteTemplateContext
-
bindAsPrototype
public void bindAsPrototype(String id, Class<?> type, Supplier<Object> bean)
- Specified by:
bindAsPrototypein interfaceorg.apache.camel.RouteTemplateContext
-
getProperty
public Object getProperty(String name)
- Specified by:
getPropertyin interfaceorg.apache.camel.RouteTemplateContext
-
getProperty
public <T> T getProperty(String name, Class<?> type)
- Specified by:
getPropertyin interfaceorg.apache.camel.RouteTemplateContext
-
setParameter
public void setParameter(String name, Object value)
- Specified by:
setParameterin interfaceorg.apache.camel.RouteTemplateContext
-
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParametersin interfaceorg.apache.camel.RouteTemplateContext
-
hasParameter
public boolean hasParameter(String name)
- Specified by:
hasParameterin interfaceorg.apache.camel.RouteTemplateContext
-
getLocalBeanRepository
public org.apache.camel.spi.BeanRepository getLocalBeanRepository()
- Specified by:
getLocalBeanRepositoryin interfaceorg.apache.camel.RouteTemplateContext
-
getConfigurer
public Consumer<org.apache.camel.RouteTemplateContext> getConfigurer()
- Specified by:
getConfigurerin interfaceorg.apache.camel.RouteTemplateContext
-
setConfigurer
public void setConfigurer(Consumer<org.apache.camel.RouteTemplateContext> configurer)
- Specified by:
setConfigurerin interfaceorg.apache.camel.RouteTemplateContext
-
-