Example usage for org.springframework.beans CachedIntrospectionResults acceptClassLoader

List of usage examples for org.springframework.beans CachedIntrospectionResults acceptClassLoader

Introduction

In this page you can find the example usage for org.springframework.beans CachedIntrospectionResults acceptClassLoader.

Prototype

public static void acceptClassLoader(@Nullable ClassLoader classLoader) 

Source Link

Document

Accept the given ClassLoader as cache-safe, even if its classes would not qualify as cache-safe in this CachedIntrospectionResults class.

Usage

From source file:org.impalaframework.module.runtime.BaseModuleRuntime.java

protected RuntimeModule doLoadModule(Application application, ModuleDefinition definition) {
    final ClassLoaderRegistry classLoaderRegistry = application.getClassLoaderRegistry();

    ClassLoader parentClassLoader = null;
    final ModuleDefinition parentDefinition = definition.getParentDefinition();

    if (parentDefinition != null) {
        parentClassLoader = classLoaderRegistry.getClassLoader(parentDefinition.getName());
    }// w w w .j  av  a  2  s .  c  o m

    if (parentClassLoader == null) {
        parentClassLoader = ClassUtils.getDefaultClassLoader();
    }

    final ClassLoader classLoader = classLoaderFactory.newClassLoader(application, parentClassLoader,
            definition);
    CachedIntrospectionResults.acceptClassLoader(classLoader);
    return doLoadModule(application, classLoader, definition);
}