I'd like to create a configuration adapter that can read a non-xml config format and plug that into spring. Is this possible? What classes should I look at?
I'd like to create a configuration adapter that can read a non-xml config format and plug that into spring. Is this possible? What classes should I look at?
If you are certain you do not want the XML-based formats (i.e., XmlBeanDefinitionReader), you can use the PropertiesBeanDefinitionReader to work with properties files.
But if neither properties files nor XML will work for you, probably the BeanDefinitionReader interface is what you will want to implement:
http://static.springframework.org/sp...ionReader.html
AbstractBeanDefinitionReader contains the generic functionality - subclass it and you'll only have to implement: loadBeanDefinitions(Resource resource)
Costin Leau
SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
http://twitter.com/costinl
Please use [ c o d e ] [ / c o d e ] tags