withClassLoader

open fun withClassLoader(classLoader: ClassLoader): SELF

Customize the ClassLoader that the ApplicationContext should use for resource loading and bean class loading.

Return

a new instance with the updated class loader

Parameters

classLoader

the classloader to use (or null to use the default)

See also