Results 1 to 3 of 3

Thread: Creating alternate config syntax

  1. #1

    Default 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. #2
    Join Date
    Feb 2006
    Location
    Arlington, VA, USA
    Posts
    194

    Default

    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

  3. #3
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •