API oldApi = API.of(myArchiveV1).supportedBy(v1Dependencies).build(); API oldApi = API.of(myArchiveV2).supportedBy(v2Dependencies).build();
This module contains the API of Revapi as well as the main class that is used to instantiate, configure and run the API analysis. It also contains a couple of simplistic implementations of the Revapi interfaces to get you started with.
Probably more interesting than this short description is the architecture of Revapi which explains the role of individual interfaces found in this module. Additionally you might wanna checkout the project reports or javadoc.
In here we’re only going to deal with the invocation of the API analysis using the Java API when Revapi is used as a library.
First of all, we need to determine what archives we are going to compare. For that Revapi uses the API class:
Configuration is supplied using JBoss DMR which should in theory support loading the configuration from various formats if enough effort is done on the user’s side. Revapi as such has so far been extensively tested only with JSON data (support for XML has been added only in Revapi 0.8.0 supported by maven plugin 0.9.0). Even if data was translated into DMR from another format than JSON, the validation of that data will always be done against a JSON schema that is provided by the extensions.