Skip to content

Introduce configuration of class loader in SimpleTypeInformationMapper #2508

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

Closed
mp911de opened this issue Dec 8, 2021 · 0 comments
Closed
Assignees
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Dec 8, 2021

To enable usage in environments that use multiple class loaders (e.g. shared ForkJoinPool through parallel streams) it would make sense to provide a class loader to avoid ClassNotFoundExceptions.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 8, 2021
@mp911de mp911de self-assigned this Dec 9, 2021
@mp911de mp911de changed the title Introduce configuration of class loader in SimpleTypeInformationMapper Introduce configuration of class loader in SimpleTypeInformationMapper Dec 9, 2021
@mp911de mp911de added this to the 2.6.1 (2021.1.1) milestone Dec 9, 2021
@mp911de mp911de closed this as completed in 6a52f27 Dec 9, 2021
mp911de added a commit that referenced this issue Dec 9, 2021
Add missing override annotations.

See #2508
mp911de added a commit that referenced this issue Dec 9, 2021
…er`.

We now support configuration of the class loader in SimpleTypeInformationMapper to use a configured class loader instead of falling always back to the default/contextual class loader. In arrangements where the contextual class loader isn't able to provide access to the desired classes (e.g. parallel Streams, general Fork/Join Thread usage) the contextual class loader may not have access to the entity types. By implementing BeanClassLoaderAware, we can now propagate a configured class loader.

Closes #2508
mp911de added a commit that referenced this issue Dec 9, 2021
Add missing override annotations.

See #2508
@mp911de mp911de added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants