OnJava:利用metadata来验证数据
2005-01-28 14:10
561 查看
很多开发人员都在不停的抱怨他们不得不管理数量众多的XML配置文件。随着java新版JDK(Tiger)带来新的元数据,那些框架下的公共配置将通过annotation写入到java源代码中。
在这篇文章中我们将通过一个数据验证框架的例子来回顾现有的配置数据管理,以及元数据将给我们带来那些好处。
Many developers have been complaining about having to manage numerous XML configuration files alongside their Java code. With the recent addition of metadata to Java, common configuration details in frameworks can now be rolled right into your Java files through annotations. For a brief introduction to metadata and annotations, see Sun's article "J2SE 5.0 in a Nutshell."
In this article, we will summarize how configuration data is managed today and what metadata will offer in the future, followed by an implementation of how annotations can be used in a simple validation framework
原文见:http://www.onjava.com/pub/a/onjava/2005/01/19/metadata_validation.html
(另:在第二期的java电子杂志里也将专门论述annotation)
在这篇文章中我们将通过一个数据验证框架的例子来回顾现有的配置数据管理,以及元数据将给我们带来那些好处。
Many developers have been complaining about having to manage numerous XML configuration files alongside their Java code. With the recent addition of metadata to Java, common configuration details in frameworks can now be rolled right into your Java files through annotations. For a brief introduction to metadata and annotations, see Sun's article "J2SE 5.0 in a Nutshell."
原文见:http://www.onjava.com/pub/a/onjava/2005/01/19/metadata_validation.html
(另:在第二期的java电子杂志里也将专门论述annotation)
相关文章推荐
- 利用java注解验证bean对象数据格式
- 【转】java类中的数据验证(正则表达式)
- Java 利用 SWFUpload多文件上传 session 为空失效,不能验证的问题
- java利用正则表达式提取年月日数据
- 使用asx3m与xstream配合解决flex与java利用httpservice传递xml数据问题
- Java 利用SWFUpload多文件上传 session 为空失效,不能验证的问题
- 简单实现利用java将数据写入到excel
- Java 利用SWFUpload多文件上传 session 为空失效,不能验证的问题
- Java利用HttpPost工具类提交数据
- java开发接口利用http协议传输数据
- java操作Excel之POI(4)利用POI实现数据的批量导出
- Java身份证号码数据验证
- 利用JAVA API函数实现数据的压缩与解压缩
- java分享第十八天-02( java结合testng,利用XML做数据源的数据驱动)
- java 后台验证数据唯一性
- android利用get提交数据到服务器进行验证
- 考虑大对象:利用 JAVA 操作 DB2 Universal Database 中的 LOB 数据
- java程序中,数据验证,如何判断输入的文本框中的值是不是int型?
- java利用jdbc连接数据库之删除数据库中的数据