Announcement Announcement Module
Collapse
No announcement yet.
Creating alternate config syntax Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Creating alternate config syntax

    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?

  • #2
    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

    Comment


    • #3
      AbstractBeanDefinitionReader contains the generic functionality - subclass it and you'll only have to implement: loadBeanDefinitions(Resource resource)

      Comment

      Working...
      X