Introduce a class loading service

Description

Currently all class loading in HV happens vi the LoadClass PrivilegedAction. In the implementation we first check the thread context class loader and then the current class loader (unless we are loading own package classes in which case we use the current class loader). Historically that was a good approach, but in order to allow for customization in all sorts of environments it makes sense to have a way to configure the class loading approach. This could be done via a ClassLoaderService which can for example be set via the Configuration.

Depending on which way Bean Validation goes this could be a HV specific feature or something defined by the spec.

Environment

None

Status

Assignee

Gunnar Morling

Reporter

Hardy Ferentschik

Labels

Worked in

None

Feedback Requested

None

Feedback Requested By

None

backPortable

None

Community Help Wanted

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

backportReEvaluate

None

Components

Fix versions

Affects versions

4.3.0.CR1

Priority

Major