Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12380

Fix org.wildfly.clustering.service.ServiceSupplier usage

    XMLWordPrintable

Details

    Description

      When PassiveServiceSupplier is used to obtain the value of a service for use by metrics, it is generally safe to construct it using OperationContext.getServiceRegistry(false), as it does not affect the MSC state of the target service.

      ActiveServiceSupplier, on the other hand, must always be constructed with OperationContext.getServiceRegistry(true). It is meant to obtain the value of an ACTIVEly installed service, thus its get() should never return null. I'd like to convert as many uses of ActiveServiceSupplier to PassiveServiceSupplier as possible.

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: