private void processAnnotation(final Annotation annotation) {
final Class<? extends Annotation> annType = annotation.annotationType();
if (annType == Context.class) {
setStrategy(Strategy.CONTEXT);
} else if (annType == CookieParam.class) {
processCookieParamAnnotation((CookieParam) annotation);
} else if (annType == FormParam.class) {
processFormParamAnnotation((FormParam) annotation);
} else if (annType == HeaderParam.class) {
processHeaderParamAnnotation((HeaderParam) annotation);
} else if (annType == Named.class) {
processNamedAnnotation((Named) annotation);
} else if (annType == PathParam.class) {
processPathParamAnnotation((PathParam) annotation);
} else if (annType == OptionalClasses.PERSISTENCE_CONTEXT) {
processPersistenceContextAnnotation((PersistenceContext) annotation);
} else if (annType == QueryParam.class) {
processQueryParamAnnotation((QueryParam) annotation);
} else if (annType == DefaultValue.class) {
defaultValue = (DefaultValue) annotation;
} else if (annType.isAnnotationPresent(Qualifier.class)) {
processQualifierAnnotation(annType);
}
}
Key.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:minijax
作者:
评论列表
文章目录