Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-2053

Allow Arquillian Core to define a way to execute registration of extensions in order

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.1.12.Final
    • Component/s: None
    • Labels:
      None

      Description

      With Arquillian Extensions you are able to override a service that was previously registered by Arquillian Core or by other extensions.

      The problem is that if if there two extensions that override the same service, it will depend on the order of the registration of the extension that will define which version of the service will be the one used at the end.

      To avoid this problem this problem the best way would be to be able to set a priority in extension registry so you can set which one is going to be the last one.

      The best none invasive approach we have found is by providing an SPI so any extension can vetoed any service /ResourceProvider/TestEnricher/... to be registered by an extension. This SPI is a file present at META-INF directory and called exclusions. The file is a properties file where key is the service type you want to veto such as (`org.jboss.arquillian.test.spi.enricher.resource.ResourceProvider`) and inside all the implementations you want to veto of this kind, each one separated by comma.

      So before starting registering the extensions, the vetoed list will be loaded into service registry so they cannot be registered.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                asotobu Alex Soto
                Reporter:
                asotobu Alex Soto
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: