-
Notifications
You must be signed in to change notification settings - Fork 38.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce ModuleResource
for resources loaded from a given Module
#28507
Comments
ModulePathResource
for resources loaded from the module path
Revisiting the module topic from another angle, I came back to the topic of module resource access and therefore to this issue. It turns out that the module system provides no entry point for general module path access. In order to find an arbitrary resource on the module path, we'd effectively have to perform a full search through all modules like with #28506. For that reason, we cannot provide a proper (efficient enough) equivalent to Practically, module-contained resources can be retrieved via For the latter scenario, a Spring-provided |
ModulePathResource
for resources loaded from the module pathModuleResource
for resources loaded from a given Module
As a follow up to #28506, we should introduce
ModulePathResource
as companion to the existingClassPathResource
to support use cases when a developer wishes to explicitly load a resource from the module path instead of the class path.The text was updated successfully, but these errors were encountered: