我的camel上下文中有一个使用Java DSL的路由器类。我还有一个对象设置为交换属性,名称为'details'。我想访问此对象的成员'isLoaded'的值。我怎样才能做到这一点。我的路由器类如下:
import org.apache.camel.CamelContext;
import org.apache.camel.builder.RouteBuilder;
public class DataLoader implements RoutesBuilder{
public void configure() throws Exception {
from("direct:fetchDetails").setBody(simple("select * from details where loaded=<exhange.details.isLoaded>")).to("jdbc");
}
}
这里可以取代<exhange.details.isLoaded>
,它将获取对象成员的值作为交换属性'details'。
答案 0 :(得分:0)
应该是:
isLoaded()
如果“details”中的对象具有属性样式getter <p><?php _e( "Your order has been received and is now being processed. We will send you another email shortly to let you know that your order has been shipped. If you'd like to track the status of your order, you can by clicking ", 'woocommerce' ); ?><a href="http://example.com" title="">XXXXXXX</a><?php _e( "Your order details are shown below for your reference:", 'woocommerce' ); ?></p>
,则此方法有效。有关详细信息,请参阅Simple语言参考。