Results 1 to 3 of 3

Thread: BeanFactoryPostProcessor and hierarchical contexts?

  1. #1
    Join Date
    Aug 2004
    Posts
    230

    Default BeanFactoryPostProcessor and hierarchical contexts?

    Is it intended that BeanFactoryPostProcessor defined in a parent context not be applied to child contexts?

    Use case: I've setup a CustomEditorConfigurer with application-wide property edtors in the appication-level context. Then at runtime, I am creating instances of child context that require these property editors.

    I have the same issue for other BeanFactoryPostProcessor that I would like to define once in the parent context and be applied to child contexts.

    Do I need to place all the post-processors in their own xml file and import them into each context at each level?
    Barry Kaplan (memelet)

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    Is it intended that BeanFactoryPostProcessor defined in a parent context not be applied to child contexts?
    Yes.
    Do I need to place all the post-processors in their own xml file and import them into each context at each level?
    Yes.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

  3. #3
    Join Date
    Aug 2004
    Posts
    230

    Default

    Ok. Thanks Omar!
    Barry Kaplan (memelet)

Similar Threads

  1. Replies: 6
    Last Post: Mar 25th, 2009, 01:43 AM
  2. Replies: 11
    Last Post: Dec 3rd, 2007, 02:30 AM
  3. Replies: 5
    Last Post: Oct 8th, 2006, 12:39 PM
  4. Replies: 2
    Last Post: May 4th, 2006, 05:34 PM
  5. Should Contexts themselves be configured by DI?
    By jbetancourt in forum Architecture
    Replies: 5
    Last Post: Sep 1st, 2004, 01:51 PM

Posting Permissions

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