2023年11月28日

SPI

摘要: 概述 SPI(Service Provider Interface) JDK内置的一种 服务提供发现机制; 用来 启用框架扩展和替换组件; 当服务的提供者提供了一种接口的实现之后,需要在classpath下的META-INF/services/目录里创建一个以服务接口命名的文件,这个文件里的内容就是 阅读全文

posted @ 2023-11-28 16:06 anpeiyong 阅读(4) 评论(0) 推荐(0) 编辑

finalize机制

摘要: 概述 public class Object { protected void finalize() throws Throwable { } } Called by the garbage collector on an object when garbage collection determi 阅读全文

posted @ 2023-11-28 10:40 anpeiyong 阅读(3) 评论(0) 推荐(0) 编辑

导航