root/trunk/examples/xml/defines-dynamic-types.xml

Revision 61, 160 bytes (checked in by mikey, 2 years ago)

Reworked the dynamic type feature after discussion with schst: Introduced the AbstractTag? which enables to state the concrete type not within the defines but within the concrete xml configuration file. However the concrete type has to be an instance of the abstract type declared as attribute of the abstract tag.

Line 
1 <defines>
2         <tag name="foo" type="MyCollector"/>
3         <abstractTag name="bar" abstractType="MyInterface" setter="addBar" concreteTypeAttribute="__type" />
4 </defines>
Note: See TracBrowser for help on using the browser.