Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-306

repositoryConfig should use setter for its internal components

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9
    • config
    • None

    Description

      From the mailing list (not archived at the moment):
      — Jukka's reply —
      I refactored the config classes last year but didn't change the way
      the config instances are being used by Jackrabbit. In general I think
      that a IoC approach (use setters to configure the Jackrabbit
      components) would be better than passing config objects around and
      letting the components to instantiate any subcomponents based on the
      configuration. This is why I didn't really want to make the config
      constructors public, otherwise we'd easily up with backwards
      compatibility issues if we were to change the way configuration is
      handled.

      Attachments

        1. RepositoryConfig.patch
          4 kB
          Costin Leau

        Activity

          People

            jukkaz Jukka Zitting
            costin.leau Costin Leau
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: