Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-11738

Don't activate components which are disabled

    Details

      Description

      To keep our component model in sync with our configuration model, we should not activate components whose configuration declares `"enabled" : false`.

       

      Presently, IDM allows `"enabled" : false` in several configurations to indicate that the component should not be active, even though the configuration is present.  This is often to allow components to be "turned off" without losing (deleting) the entire configuration.

      This produces an ugly problem of `@Reference` to components which are, in fact, optional, but they are always there, but in a disabled state.  We then have to implement `isEnabled` methods on all these components to determine behavior when we could simple use an optional reference on the optional component and use its presence to guide behavior. The latter is more consistent with the API.

       

      As a developer, I would like to use `OPTIONAL` references to determine whether optional components are available.  This should react properly to services which have been disabled through config.

        Attachments

          Activity

            People

            • Assignee:
              brmiller Brendan Miller
              Reporter:
              brmiller Brendan Miller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: