This is what I want to write:
But the XML validater won't let me. You can see the xsd for this atCode:<job id="myJob" xmlns="http://www.springframework.org/schema/batch"> <step id="myStep"> <tasklet> <bean class="com.company.mytasklet"> <property name="foo" value="bar"/> </bean > </tasklet> </step> </job>
http://www.springframework.org/schem...-batch-2.1.xsd
I am never going to reuse the inner bean again. I want to define it inline. In the tasklet's XSD I see:
But I can't make it validate. Instead I have to write the cheap hack of:HTML Code:<xsd:element ref="beans:bean" minOccurs="0" maxOccurs="1" />
What am I missing?Code:<job id="myJob" xmlns="http://www.springframework.org/schema/batch"> <step id="myStep"> <tasklet ref="myTasklet"/> </step> </job> <bean class="com.company.mytasklet" id="myTasklet"> <property name="foo" value="bar"/> </bean >


Reply With Quote