Skip to content

Provide full control over the registration of resolvers and transformers in ResourceHandlerRegistration [SPR-12124] #16740

@spring-projects-issues

Description

@spring-projects-issues

Guillaume DROUET opened SPR-12124 and commented

ResourceHandlerRegistration is designed to be extended, however it is currently not possible to specify any other implementation. In some cases, we may desire to specialize methods like getResourceResolvers and getResourceTransformers (which are already in a protected access level). For instance, we can intercept all created ResourceResolver and ResourceTransformer instances in order to know what elements will be executed later in the chains of responsibility.

So the ResourceHandlerRegistry should expose an API like this:

ObjectFactory<ResourceHandlerRegistration> factory = ...;
registry.resourceHandlerRegistrationFactory(factory).addResourceHandler("/**");


Affects: 4.1 RC2

Referenced from: commits fbfb7a3, 0b02551

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions