Is there a way to override and not execute the headerCallBack in Spring Batch -
i've created abstract parentflatfilewriter included headercallback default header. works great because i'm writing 6 files.
but, on 1 file i'm writing, want skip header 1 file. still want use abstract bean rest of outfiles.
can override inherited headercallback property , not write header?
thanks
header written flatfileitemwriter.headercallback
property setted else header writing skipped. in 7th writer set flatfileitemwriter.setheadercallback(null)
.
in spring xml write:
<bean id="my7thwriter" class="my7thwriterimpl" parent="parentflatfilewriter"> <property name="headercallback"><null/></property> </bean>
Comments
Post a Comment