CXFPlusServiceBean.java 文件源码

java
阅读 73 收藏 0 点赞 0 评论 0

项目:cxf-plus 作者:
private Map<Class, Boolean> getJaxbAnnoMap(MessagePartInfo mpi) {
    Map<Class, Boolean> map = new ConcurrentHashMap<Class, Boolean>();
    Annotation[] anns = getMethodParameterAnnotations(mpi);

    if (anns != null) {
        for (Annotation anno : anns) {
            if (anno instanceof XmlList) {
                map.put(XmlList.class, true);
            }
            if (anno instanceof XmlAttachmentRef) {
                map.put(XmlAttachmentRef.class, true);
            }
            if (anno instanceof XmlJavaTypeAdapter) {
                map.put(XmlJavaTypeAdapter.class, true);
            }
            if (anno instanceof XmlElementWrapper) {
                map.put(XmlElementWrapper.class, true);
            }
        }
    }
    return map;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号