Apache Commons概览(备查)

钮博裕
2023-12-01

在Java社区,有那么一小撮人,觉得Java API还不足用,至少还不够好用,就起了给增强Java API的念头,于是Apache Commons项目诞生了。为了便于被使用,Apache Commons项目采用了与Java API的包一致的方式组织,于是出现了一系列子项目。

伴随着Apache Commons项目的发展,有些子项目保持了顽强的生命力,而有些则慢慢沦为弃子,还有些新的子项目不断产生。于是,Apache Commons项目首先被分为如下3个独立的组件库:

  • Apache Commons Sandbox,Java组件开发的试验空间
  • Apache Commons Dormant,遗留Java组件库(不建议使用)
  • Apache Commons Proper,Java组件库

事实上,大家开发过程中,通常能够想起来的都属于Apache Commons Proper库,这也是我们后续要讨论的库。所以,默认提到Apache Commons项目都是指Apache Commons Proper库中的组件。

Apache Commons Proper库中的组件都是以子项目的形式组织,列表如下:

ComponentsDescriptionLatest VersionReleased
BCELByte Code Engineering Library - analyze, create, and manipulate Java class files6.22017-11-08
BeanUtilsEasy-to-use wrappers around the Java reflection and introspection APIs.
为Java Bean的动态属性(运行时才确定的属性)提供getter/setter方法。
主要工具类:PropertyUtils(推荐),BeanUtils
1.9.32016-09-26
BSFBean Scripting Framework - interface to scripting languages, including JSR-2233.12010-06-24
ChainChain of Responsibility pattern implemention.1.22008-06-02
CLICommand Line arguments parser.1.42017-03-09
CodecGeneral encoding/decoding algorithms (for example phonetic, base64, URL).1.112017-10-20
CollectionsExtends or augments the Java Collections Framework.4.12015-11-27
CompressDefines an API for working with tar, zip and bzip2 files.1.172018-06-03
ConfigurationReading of configuration/preferences files in various formats.2.22017-10-12
CryptoA cryptographic library optimized with AES-NI wrapping Openssl or JCE algorithm implementations.1.0.02016-07-22
CSVComponent for reading and writing comma separated value files.1.52017-09-03
DaemonAlternative invocation mechanism for unix-daemon-like java code.1.0.152013-04-03
DBCPDatabase connection pooling services.2.3.02018-05-12
DbUtilsJDBC helper library.1.72017-07-20
DigesterXML-to-Java-object mapping utility.3.22011-12-13
EmailLibrary for sending e-mail from Java.1.52017-08-01
ExecAPI for dealing with external process execution and environment management in Java.1.32014-11-06
FileUploadFile upload capability for your servlets and web applications.1.3.32017-06-13
FunctorA functor is a function that can be manipulated as an object, or an object representing a single, generic function.1.02011-??-??
GeometrySpace and coordinates.1.02018-??-??
Imaging (previously called Sanselan)A pure-Java image library.0.97-incubator2009-02-20
IOCollection of I/O utilities.2.62017-10-15
JCIJava Compiler Interface1.12013-10-14
JCSJava Caching System2.22017-08-02
JellyXML based scripting and processing engine.1.0.12017-09-27
JexlExpression language which extends the Expression Language of the JSTL.3.12017-04-14
JXPathUtilities for manipulating Java Beans using the XPath syntax.1.32008-08-14
LangProvides extra functionality for classes in java.lang.
Lang 3.0开始使用commons-lang3的构件名称。
主要工具类:StringUtils, ArrayUtils
3.72017-11-08
LoggingWrapper around a variety of logging API implementations.1.22014-07-11
MathLightweight, self-contained mathematics and statistics components.3.52015-04-17
NetCollection of network utilities and protocol implementations.3.62017-02-15
NumbersNumber types (complex, quaternion, fraction) and utilities (arrays, combinatorics).1.02017-??-??
OGNLAn Object-Graph Navigation Language4.02013-??-??
PoolGeneric object pooling component.2.5.02017-12-19
ProxyLibrary for creating dynamic proxies.1.02008-02-28
RDFCommon implementation of RDF 1.1 that could be implemented by systems on the JVM.0.3.0-incubating2016-11-15
RNGImplementations of random numbers generators.1.02016-12-13
SCXMLAn implementation of the State Chart XML specification aimed at creating and maintaining a Java SCXML engine.
It is capable of executing a state machine defined using a SCXML document, and abstracts out the environment interfaces.
0.92008-12-01
StatisticsStatistics.0.1????-??-??
TextApache Commons Text is a library focused on algorithms working on strings.
处理文本(非字符串)
1.32018-03-21
ValidatorFramework to define validators and validation rules in an xml file.1.62017-02-21
VFSVirtual File System component for treating files, FTP, SMB, ZIP and such like as a single logical file system.2.22017-10-06
WeaverProvides an easy way to enhance (weave) compiled bytecode.1.32016-10-18

参考链接:

http://commons.apache.org/

 类似资料: