Java Class Load loadClassWithTCCL(String name)

Here you can find the source of loadClassWithTCCL(String name)

Description

load Class With TCCL

License

Open Source License

Declaration

public static Class<?> loadClassWithTCCL(String name) throws ClassNotFoundException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Class<?> loadClassWithTCCL(String name) throws ClassNotFoundException {
        if ("byte[]".equals(name)) {
            return byte[].class;
        }/*  w  w w . j av a 2s.c  om*/

        return Thread.currentThread().getContextClassLoader().loadClass(name);
    }
}

Related

  1. loadClassReflectively(ClassLoader classLoader, String fullyQualifiedClassName)
  2. loadClassSafe(final String klassName)
  3. loadClassSilently(ClassLoader cl, String name)
  4. loadClassUsingClass(Class clazz, String name)
  5. loadClassViaContext(String fqcn)