Wolf Paulus wrote:
Frank,
Thanks or your input, this is really appreciated and I would wish we had more contributions like this. Please send me your code and I will integrate it in the next or a following releases.

Code send by personal mail...


I would like to keep the custom attribute tags (like class, factorymethod, etc.) to an absolute minimum.

Maybe a single attribute name like "instance" would do. I.e.
   <tagname=".." attr=".." instance="mypack.myclass"/>

I named it "InitType" to indicate it is the type to init the element with. As you suggested, the FactoryMethod attribute was removed. Now it is implicitly checked for a method named "getInstance" with no arguments. If no such method exists, the default constructor of InitType is used.

Frank

and getInstance() is used if this this method exists otherwise the default constructor is called.

Wolf


Frank Mei�ner wrote:

Hello Wolf,




Reply via email to