是否有共享AnnotationUtils像库? (JAVA) [英] Is there Commons AnnotationUtils like library? (Java)

查看:254
本文介绍了是否有共享AnnotationUtils像库? (JAVA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法找到一个通用工具(静态方法)库查询比其它注释直接使用注解API和写我自己的,或者使用温泉:

I can't find a general utilities (static methods) library for querying for annotations other than either using the annotations api directly and writing my own or using Springs:

  • Springs Annotation Utils

通常我不会介意使用泉但它的一个相当大的依赖性只是处理注解。也许下议院郎会有AnnotationUtils的一天。

Normally I would not mind using Springs but its a rather big dependency just for dealing with annotations. Maybe Commons Lang will have AnnotationUtils some day.

什么是使用查询注解的人呢?

What are people using to query for Annotations?

推荐答案

随着春天的2.5.6版本,这是可以使用的spring.jar(2.8 MB)的依赖。随着3.0版本,这是不可能的。相反,你必须添加依赖核心,豆类,背景,ASM和前pression模块作为最低限度,以启动容器。

With version 2.5.6 of Spring, it was possible to use spring.jar (2.8 MB) as dependency. With version 3, that's not possible. Instead you have to add dependency to the core, beans, context, asm and expression module as a minimum to start the container.

既然你只有 AnnotationUtils 类,它足以与核心模块。

Since you only the AnnotationUtils class, it's sufficient with the core module. You can find the Ivy and Maven element together with a download link here:

http://www.springsource.com/repository/app/search?查询= AnnotationUtils

它的大小为350 KB与阿帕奇共享郎2.4 258 KB。

Its size is 350 KB versus Apache Commons Lang 2.4 on 258 KB.

这篇关于是否有共享AnnotationUtils像库? (JAVA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆