RESTEasy SPI to modify resource metadata

In  jaxrs

Overview

Provide a SPI allowing to modify the resource metadata which is created from ResourceBuilder

The idea is to create a SPI in RESTEasy to allow altering the metadata of resource classes. The interface for such a SPI would be something like:

public interface ResourceClassProcessor {
    ResourceClass process( ResourceClass clazz );
}

The new processors are meant to be stored using the usual ResteasyProviderFactory.

Issue Metadata

Affected Projects or Components:

  • RESTEasy

Requirements

  • Server side only support (client side (proxy) support possibly comimg in future as a new RFE).

  • processor processing after annotation processing

Test Plan

Run RESTEasy testsuite with includes additional tests for this new feature.

Community Documentation

The documentation is coming with the release of the RESTEasy component that’s bringing the feature in WildFly. The merged PR that added the documentation is https://github.com/resteasy/Resteasy/pull/1542/files .