public class DefaultContextClassLoaderProvider extends Object implements ContextClassLoaderProvider, org.springframework.beans.factory.BeanClassLoaderAware
ContextClassLoaderProvider
interface.
It returns the given application context class loader if it is set, falling
back to the current thread context class loader otherwise (in effect, leaving
the TCCL as it is).Constructor and Description |
---|
DefaultContextClassLoaderProvider() |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
getContextClassLoader()
Returns the context class loader to be used by the OSGi application
context during its life cycle events.
|
void |
setBeanClassLoader(ClassLoader classLoader) |
public ClassLoader getContextClassLoader()
ContextClassLoaderProvider
getContextClassLoader
in interface ContextClassLoaderProvider
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
Copyright © 2006–2015. All rights reserved.