Results 1 to 3 of 3

Thread: Appending annotatedClasses

  1. #1

    Default Appending annotatedClasses

    So I have a common project, that includes a commonApplicationContext.xml, which includes a AnnotationSessionFactoryBean and sets its annotatedClasses. I have a new project that uses the common project and its commonApplicationContext.xml as well as its own applicationContext.xml.

    Is there a way to append the AnnotationSessionFactoryBean's annotatedClasses in the applicationContext.xml without having to copy-and-paste it from the commonApplicationContext.xml?

  2. #2
    Join Date
    Sep 2004
    Location
    Manchester, NH
    Posts
    1,236

    Default

    Depending on how exactly you have your configuration set up, but one of parent/child bean mechanism, or util:list with the merge option should do it for you. This is assuming you're using Spring 2.0+. Hope that helps!
    Peter Mularien | Blog
    Author, Spring Security 3 (Book) - Packt Publishing, Available in print and eBook form
    SCJP 5, Oracle DBA
    Any postings are my own opinion, and should not be attributed to my employer or clients.


  3. #3

    Default

    Seems like the way to go. Thanks.

Posting Permissions

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