Search:

Type: Posts; User: Snow; Keyword(s):

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    4,610

    The poc example doesn't show the full context of...

    The poc example doesn't show the full context of our situation here where several Spring config files come into play. There's already a PropertyPlaceHolder in one of the configs, overriden by a...
  2. Replies
    13
    Views
    4,610

    Genius, it works! Thx for the effort. We set...

    Genius, it works! Thx for the effort.

    We set this programmatically at runtime to reuse the same Spring config for different behaviours.
  3. Replies
    13
    Views
    4,610

    ok, so when I put my...

    ok, so when I put my ClassPathXmlApplicationContext back in place like this:

    ClassPathXmlApplicationContext aContext = new ClassPathXmlApplicationContext(
    SPRING_CONTEXT_PATHS,...
  4. Replies
    13
    Views
    4,610

    Digging this one back up... I tried your...

    Digging this one back up...

    I tried your solution, but now it returns me the value I put in the context XML and not the one from overridePropertiesPoc.properties. Is there something I forgot?

    ...
  5. Replies
    13
    Views
    4,610

    registerSingleton is not available on...

    registerSingleton is not available on ClassPathXmlApplicationContext?
  6. Replies
    13
    Views
    4,610

    I made a small proof of concept to isolate the...

    I made a small proof of concept to isolate the issue from the rest of my code: see attachment. The main class is OverridePropertiesPoc.
  7. Replies
    13
    Views
    4,610

    That sounded like a good idea! I added ...

    That sounded like a good idea!

    I added
    <property name="order" value="1" /> to the PropertyOverrideConfigurer in my XML and
    cfg.setOrder(0); in my Java code.

    Unfortunately, it still takes...
  8. Replies
    13
    Views
    4,610

    overrule PropertyOverrideConfigurer bean in code

    I have a PropertyOverrideConfigurer bean in one of my Spring xml configuration files/contexts.

    In some cases, I want to reuse this Spring context, but overrule the PropertyOverrideConfigurer from...
Results 1 to 8 of 8