类javax.xml.bind.annotation.XmlRegistry源码实例Demo

下面列出了怎么用javax.xml.bind.annotation.XmlRegistry的API类实例代码及写法,或者点击链接到github查看源代码。

源代码1 项目: eclair   文件: JaxbElementWrapper.java
private Method findMethod(Class<?>[] classes, Class<?> parameterClass) {
    for (Class<?> clazz : classes) {
        if (nonNull(clazz.getAnnotation(XmlRegistry.class))) {
            for (Method method : ReflectionUtils.getAllDeclaredMethods(clazz)) {
                if (byParameterType(method, parameterClass) && byReturnType(method, parameterClass) && byAnnotation(method)) {
                    return method;
                }
            }
        }
    }
    return null;
}
 
 类方法
 同包方法