Skip to content

Allow configuration inspection-classloader customization [DATACMNS-1263] #1701

Closed
@spring-projects-issues

Description

@spring-projects-issues

Mark Paluch opened DATACMNS-1263 and commented

We should allow customization of the classloader that is used to load repository interfaces/domain classes during configuration inspection.

Originally:

In RepositoryConfigurationExtensionSupport, we're loading repository interfaces through the class loader which loads in consequence associated classes (id class, domain class).

Early class loading can interfere with initialization, especially if classes are post-processed at a later stage (e.g. Load-Time Weaving, see DATAJPA-1250).

We should investigate what we can do to not load classes during configuration initialization and still obtain details required to properly configure repository factory beans.


Affects: 2.1 M1 (Lovelace), 2.0.4 (Kay SR4)

Issue Links:

  • DATAJPA-1250 Entity classes loaded before EclipseLink LTW is initialized
    ("is depended on by")

Referenced from: pull request #276

Backported to: 2.0.6 (Kay SR6)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions