[jboss-jira] [JBoss JIRA] (WFCORE-4535) WildFly discovery subsystem registers capabilities using an ambiguous contract

Paul Ferraro (Jira) issues at jboss.org
Thu Jun 20 13:12:00 EDT 2019


Paul Ferraro created WFCORE-4535:
------------------------------------

             Summary: WildFly discovery subsystem registers capabilities using an ambiguous contract
                 Key: WFCORE-4535
                 URL: https://issues.jboss.org/browse/WFCORE-4535
             Project: WildFly Core
          Issue Type: Bug
          Components: Discovery
    Affects Versions: 9.0.1.Final
            Reporter: Paul Ferraro
            Assignee: Paul Ferraro


The discovery subsystem registers capabilities of the form RuntimeCapability<Void> with a service type of DiscoveryProvider.class with the model.

However, during runtime it registers capabilities of the form RuntimeCapability<DiscoveryProvider> with the OperationContext using the same name.

This violates the capability contract.  Since the capability specified during resource registration is what defines the contract, and since non-trivial discovery provider implementations cannot reasonably register an implementation during the model phase without requiring runtime dependencies, we should prefer the former definition over the latter.



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list