简体   繁体   English

哪些库附带了对Java 6 ServiceLoader工具(META-INF / services)的支持?

[英]What libraries ship with support for the Java 6 ServiceLoader facility (META-INF/services)?

I'm wondering what adoption rate is of the (now officially supported) ServiceLoader facility in Java 6. I'd like to begin using it as a preferred way to locate dependencies. 我想知道Java 6中(现已得到正式支持) ServiceLoader工具的采用率是多少。我想开始使用它作为查找依赖项的首选方法。 Obviously this would be made much easier if the jars already ship with with the necessary configuration file in place. 显然,如果罐子已经附带了必要的配置文件,则这样做会容易得多。

Just poking around I was happy to see the MySQL JDBC driver has the "META-INF/services" in place (at least in v5.1 of mysql-connector-j). 随便看看,我很高兴看到MySQL JDBC驱动程序已经安装了“ META-INF / services”(至少在mysql-connector-j v5.1中)。

I'd be interested to know what other major/widely used libraries are known to provide this this. 我想知道还有哪些其他主要/广泛使用的库可以提供此功能。

Hibernate是PostgreSQL JDBC的两个名称。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM