Announcement Announcement Module
No announcement yet.
Augmenting basenames to messageSource Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Augmenting basenames to messageSource

    I have a webapp that is comprises components (jarfiles) which
    are developed by distinct teams concurrently and integrated
    into the webapp.

    Each component (jarfile) contributes its own
    file to the webapp. The intention is that the (singleton) messageSource
    of the webapp would use an message properties (basename) which
    is an augmentation of the basename files contributed by the different

    The examples that I have seen of the usage of the messageSource
    illustrate the usage with a fixed (hardcoded) set of one or more
    basename files.

    I need to instantiate the messageSource with a basic basename and
    thereafter augment the messageSource with additional basenames
    as the webapp loads.

    My question is: can I add a basename to an existing messageSource and have it 'absorb' it or do I have to do a setBasenames() with the
    existing and the new basename files everytime I add a new