knowcode-xml
knowcode-xml copied to clipboard
XmlContainerFactory.create with given class
Hi folks!
Very often we need to set common properties and behaviors between many Containers of our application.
It's very interesting to implement a "create" method of the XmlContainerFactory with a parameter to instantiate a given class, instead of returning a new XmlContainerLayout*
Example:
public static<T extends XmlContainerLayout> T create(String pathXml, Class<T> clazz)
Thanks in advance. Evandro