编程语言
首页 > 编程语言> > JVM学习笔记25——Launcher类源码分析

JVM学习笔记25——Launcher类源码分析

作者:互联网

public static ClassLoader getSystemClassLoader()


Returns the system class loader for delegation. This is the default delegation parent for new ClassLoader instances, and is typically the class loader used to start the application.
This method is first invoked early in the runtime's startup sequence, at which point it creates the system class loader and sets it as the context class loader of the invoking Thread.

The default system class loader is an implementation-dependent instance of this class.
If the system property "java.system.class.loader" is defined when this method is first invoked then the value of that property is taken to be the name of a class that will be returned as the system class loader. The class is loaded using the default system class loader and must define a public constructor that takes a single parameter of type ClassLoader which is used as the delegation parent. An instance is then created using this constructor with the default system class loader as the parameter. The resulting class loader is defined to be the system class loader.

浏览源代码网站:grepcode.com

标签:25,Launcher,ClassLoader,system,loader,delegation,default,源码,class
来源: https://blog.csdn.net/yshuoo/article/details/116540967