Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3327

Gracefully handle Configuration access after Configuration Admin Service has terminated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • configadmin-1.2.8
    • configadmin-1.4.0
    • Configuration Admin
    • None

    Description

      When accessing Configuration objects after the Configuration Admin service supplying the Configuration has been unregistered/stopped, all kinds of exceptions may be thrown. This should be cleaned such that defined and controlled exceptions are thrown:

      • getPid, getFactoryPid, and getProperties just operate as before. They don't need live Configuration Admin access
      • getBundleLocation, setBundleLocation, update (both methods), and delete throw IllegalStateException

      This is not required by the spec (in fact the spec remains silent about this case) but is ok.

      Attachments

        Activity

          People

            fmeschbe Felix Meschberger
            fmeschbe Felix Meschberger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: