knowcode-xml icon indicating copy to clipboard operation
knowcode-xml copied to clipboard

XmlContainerFactory.create with given class

Open erathke opened this issue 3 years ago • 0 comments

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

erathke avatar May 12 '21 21:05 erathke