Announcement Announcement Module
Collapse
No announcement yet.
Appending annotatedClasses Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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!

    Comment


    • #3
      Seems like the way to go. Thanks.

      Comment

      Working...
      X