<jb:bean beanId="xyz"
class="package.xzy"
createOnElement="harcoded" />
我需要在运行时删除带有编码的字符串,所以有什么办法可以做到这一点吗?
答案 0 :(得分:0)
我通过在运行时添加bean来实现这一点,其中bean id在运行时被修改,createOnElement也被某些条件替换。
ExecutionContext execContext =smooks.createExecutionContext();
execContext.getBeanContext().addBean(valAtRuntime,xyz);