Examples of DecoratingClassLoader


Examples of org.springframework.core.DecoratingClassLoader

  private Class doResolveBeanClass(RootBeanDefinition mbd, Class... typesToMatch) throws ClassNotFoundException {
    if (!ObjectUtils.isEmpty(typesToMatch)) {
      ClassLoader tempClassLoader = getTempClassLoader();
      if (tempClassLoader != null) {
        if (tempClassLoader instanceof DecoratingClassLoader) {
          DecoratingClassLoader dcl = (DecoratingClassLoader) tempClassLoader;
          for (Class<?> typeToMatch : typesToMatch) {
            dcl.excludeClass(typeToMatch.getName());
          }
        }
        String className = mbd.getBeanClassName();
        return (className != null ? ClassUtils.forName(className, tempClassLoader) : null);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.