我使用駱駝2.13.1我想一個類,參數傳遞給我的方法之一,在beanApache的駱駝的Java DSL傳遞類參數bean方法
我可以這樣做
In Route
--
.beanRef("someSpringBeanRef","someMethod(${body},com.test.TestObject)")
--
And in Bean
public Object someMethod(String testBody, Class type){
我知道我可以在頭中發送合格的類名,並在bean中使用它,但感覺不太好。還有其他的選擇嗎?
我看到這個鏈接,但對我來說 Apache Camel - Spring DSL - Pass String argument to bean method