`
wonderfan
  • 浏览: 14074 次
  • 性别: Icon_minigender_1
  • 来自: 武汉
最近访客 更多访客>>
社区版块
存档分类
最新评论
阅读更多
the commons project already has more than three dozen components; some have been developed from scratch, and other have been pulled out of bigger projects under jarkata.
the components that are part of jakarta commons are categorized into two parts:
commons proper: this section holds components that are in a production-ready state. experimentation and changes will be minimal and systematic with these components.
sandbox: the sandbox components are those that hold a lot of promise but still in an incomplete stage. many of the sandbox components are still on the dramming border or in beta and alpha releases.

the following are the various components currently featured in the commons proper:
beanutils:javabeans adhereing to standard naming conventions as specified in the javabean specification and having private member variables with a public get method to fetch the value of the variable and a set method to set it are often used in java development.
betwixt: the betwixt component provides a way to easily convet javabeans into xml.
cli: this component makes working with command line arguments simple and systematic. it provides a methodology to specify arguments,their usahe and access to arguments.
codec:codec provides implementations for common encoders and decoders.
collections:the collections components go beyond what is offered by the java collection framework and provides many classes that offer useful collections and utilities.
dbcp:the database connection pool component provides the functionality of pooling database connection and optimally utilizing them. database connections are precious resources that need to be created and used wisely.
dbutils: the dbutils component is a handy set of classes capable of easily handling most of the routine tasks aht need to be performed while accessing a database using java database connectivity.
digester: creating ,parsing and using xml files can be quite a pain if only the basic apis are used. digester makes working with xml quite simple and is of great use, especially while retrieving information from configuration files.
discovery:the discovery component is meant to ease discovery of implementation for various interfaces.
el:an important addition to java server pafge is the support for an expression language. the el component is an expression lanuage interpreter.
fileupload:the fileupload component can provide file upload capability to web applications.
httpclient: the httpclient component goes beyond hypertext transfer protocol features offered by the net component and provided many features required by a java client communicationg using http.
jelly:jelly is a component that can convert xml into executable code. jelly has many subelements that use the core concepty to achieve different ends.
jexl:jexl stands for jave expression language. the jexl component provides an expression lanuage engine that implements an extended version of the expression lanuage of jsp standard tag libraries.
jxpath:jxpath is an interpreter for xml.
org.apache.commons.lang: this package provides the classes you are likely to use most often while working with the lang component. the builder package consists of classes that help in creating commonly used metheds.

the validator component is a framework you can use to take the drudgery out of writing validation code. the validator component  comes with a built-in validation capability for some common validations. the validator component began as part of the struts framework.

the advantages of using the validator framework are as follows:
validaton rules can be defined in xml files.
validation rules can be changed without having to touch the source code.
built-in validations handle most of the common scenarios.

pooling is an important concept and if used wisely can reduce resource consumprion as well as boosts your application's performance. the pool component consists of two packagerg.apchae.commons.pool and and org.apche.commomns.poll.impl. the package org.apche.commons.pool provides interface and base implementations and the org.apache.commons.pool.impl package provides implementations of a few types of object pooling that are possible.
the objectpool inerface is what defines the methods that each pooling implementation has to provide. the interface is simple enough, the methods borrowobject and returnobject are the two you will use the most.
the dbutils component is a nice ,simple component that does nothing but jsut makes many jdbc tasks a shade easier for the developer. although many persistence frameworks and packages are aviable these days that aim at making data persistence a littler eaiser,jdbc still is very much the bread and butter for most java and java2 enterprise edition developers.
分享到:
评论

相关推荐

    Apache Commons工具集

    Apache Commons是Java开发中不可或缺的一部分,它提供了一系列实用的工具类和组件,极大地丰富了Java标准库的功能。这个工具集包含了许多模块,每个模块都专注于特定的编程任务,旨在简化和优化开发流程。以下是一些...

    Apache Commons Math3探索之多项式曲线拟合实现代码

    Apache Commons Math3是一个强大的Java库,它提供了许多数学和统计工具,包括多项式曲线拟合功能。在本文中,我们将深入探讨如何使用Apache Commons Math3库进行多项式曲线拟合。 首先,我们要知道多项式曲线拟合是...

    apache commons jar(commons所有的jar包,从官网下载提供.zip

    apache commons jar(commons所有的jar包,从官网下载提供给大家) 因为涉及jar太多,包括有src源代码,只需要3分,希望大家理解,我也是从官网花了很长时间才一个一个下完,需要的请自取。全部是zip文件,每个对应的...

    apache commons all 中文api合集

    apache commons all 中文api合集

    apache commons jar(commons所有的jar包,从官网下载提供给大家)

    apache commons jar(commons所有的jar包,从官网下载提供给大家) 因为涉及jar太多,包括有src源代码,只需要3分,希望大家理解,我也是从官网花了很长时间才一个一个下完,需要的请自取。全部是zip文件,每个对应的...

    Apache commons-io-2.5.jar

    Apache Commons IO 是一个Java库,专门用于处理输入/输出(I/O)操作。这个库提供了大量的实用工具类,使得在处理文件、流、过滤器、读写操作时更加方便。"commons-io-2.5.jar"是Apache Commons IO库的一个版本,...

    apache commons

    Apache Commons 是一个由 Apache 软件基金会维护的开源项目集合,它提供了许多Java库,旨在简化常见的编程任务。这些库通常包含实用工具类、数据结构、算法实现以及各种服务接口,大大增强了Java开发者的生产力。...

    Apache Commons FileUpload 1.3.2 released

    The Apache Commons team is pleased to announce the release of Apache Commons FileUpload 1.3.2. The Apache Commons FileUpload component provides a simple yet flexible means of adding support for ...

    Apache Commons 官方最近所有的jar包

    Apache Commons 是一个由 Apache 软件基金会维护的开源项目集合,它提供了许多Java实用工具类,以增强Java标准库的功能。这些jar包是开发者在处理常见编程任务时的得力助手,涵盖范围广泛,包括数据结构、网络通信、...

    Apache Commons API.rar

    Apache Commons 是一个由Apache软件基金会开发的Java库集合,它为Java程序员提供了许多实用工具类,简化了常见的编程任务。这个"Apache Commons API.rar"压缩包包含五个关键的Apache Commons子项目的API文档,分别是...

    Apache Commons NET 3.0

    Apache Commons Net是一个强大的Java库,专注于网络协议和网络操作,它是Apache软件基金会的一部分。这个库在版本3.0中提供了大量的网络工具和类,旨在简化网络编程任务,为开发者提供了丰富的功能,包括FTP、Telnet...

    Apache Commons Pool 2.4.1

    Apache Commons Pool 2.4.1 是一个广泛使用的对象池库,主要在Java开发中用于高效管理资源。对象池的概念是创建一组预先配置的对象,而不是每次需要时都创建新的对象,这大大减少了对象的创建和销毁开销,提高了应用...

    Apache Commons组件简介.ppt

    Apache Commons 是一个由Apache软件基金会开发的Java库项目,它专注于提供可重用的Java组件。这个项目包含多个子组件,每个子组件都有其特定的功能和用途,旨在简化开发过程并增强Java应用程序的功能。 1. **...

    apache Commons Lang 2.4 API

    apache Commons Lang 2.4 API apache Commons Lang 2.4 API

    基于apache commons.fileupload的文件上传组件,改进了上传速度

    apache commons.fileupload上传组件在上传文件时,在调用parseRequest方法时,先将输入流上传到服务器临时目录,在之后的文件处理过程中,再将临时目录下保存的文件复制到指定的目录,多了一道转储步骤。本实现抽取...

    Apache Commons Mail 封装发送邮件类

    Apache Commons Mail 是一个Java库,它为发送电子邮件提供了一个简单且强大的API。这个库是对JavaMail API的一个方便的封装,简化了通过Java程序发送电子邮件的过程。在JavaMail中,配置和使用邮件服务可能相对复杂...

    Apache Commons Collections 4.0 API+jar包

    Apache Commons Collections 4.0 API 是一个非常重要的Java库,它是Apache软件基金会开发的一个开源项目。这个库提供了大量的集合框架的扩展,使得开发者能够更高效、便捷地处理各种数据结构和算法。Apache Commons ...

    Apache Commons Crypto 1.0.0

    Apache Commons Crypto 1.0.0 是一个由Apache软件基金会开发的开源库,它专注于提供加密功能,适用于Java 1.7及更高版本的环境。这个库为Java开发者提供了易于使用的加密API,使得在应用程序中集成加密算法变得更加...

Global site tag (gtag.js) - Google Analytics