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 void
bind(String id, Class<?> type, Object bean)
void
bind(String id, Class<?> type, Supplier<Object> bean)
void
bind(String id, Object bean)
void
bindAsPrototype(String id, Class<?> type, Supplier<Object> bean)
org.apache.camel.CamelContext
getCamelContext()
Consumer<org.apache.camel.RouteTemplateContext>
getConfigurer()
org.apache.camel.spi.BeanRepository
getLocalBeanRepository()
Map<String,Object>
getParameters()
Object
getProperty(String name)
<T> T
getProperty(String name, Class<?> type)
boolean
hasParameter(String name)
void
setConfigurer(Consumer<org.apache.camel.RouteTemplateContext> configurer)
void
setParameter(String name, Object value)
-
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContext
in interfaceorg.apache.camel.spi.HasCamelContext
-
bind
public void bind(String id, Object bean)
- Specified by:
bind
in interfaceorg.apache.camel.RouteTemplateContext
-
bind
public void bind(String id, Class<?> type, Object bean)
- Specified by:
bind
in interfaceorg.apache.camel.RouteTemplateContext
-
bind
public void bind(String id, Class<?> type, Supplier<Object> bean)
- Specified by:
bind
in interfaceorg.apache.camel.RouteTemplateContext
-
bindAsPrototype
public void bindAsPrototype(String id, Class<?> type, Supplier<Object> bean)
- Specified by:
bindAsPrototype
in interfaceorg.apache.camel.RouteTemplateContext
-
getProperty
public Object getProperty(String name)
- Specified by:
getProperty
in interfaceorg.apache.camel.RouteTemplateContext
-
getProperty
public <T> T getProperty(String name, Class<?> type)
- Specified by:
getProperty
in interfaceorg.apache.camel.RouteTemplateContext
-
setParameter
public void setParameter(String name, Object value)
- Specified by:
setParameter
in interfaceorg.apache.camel.RouteTemplateContext
-
getParameters
public Map<String,Object> getParameters()
- Specified by:
getParameters
in interfaceorg.apache.camel.RouteTemplateContext
-
hasParameter
public boolean hasParameter(String name)
- Specified by:
hasParameter
in interfaceorg.apache.camel.RouteTemplateContext
-
getLocalBeanRepository
public org.apache.camel.spi.BeanRepository getLocalBeanRepository()
- Specified by:
getLocalBeanRepository
in interfaceorg.apache.camel.RouteTemplateContext
-
getConfigurer
public Consumer<org.apache.camel.RouteTemplateContext> getConfigurer()
- Specified by:
getConfigurer
in interfaceorg.apache.camel.RouteTemplateContext
-
setConfigurer
public void setConfigurer(Consumer<org.apache.camel.RouteTemplateContext> configurer)
- Specified by:
setConfigurer
in interfaceorg.apache.camel.RouteTemplateContext
-
-