/**
* @param cls
* @return true if cls appears to be a JAXB enabled class
*/
private static boolean isJAXB(Class cls) {
// See if the object represents a root element
XmlRootElement root = (XmlRootElement)
getAnnotation(cls,XmlRootElement.class);
if (root != null) {
if (log.isDebugEnabled()) {
log.debug("isJAXB returns true due to presence of @XmlRootElement on " + cls);
}
return true;
}
// See if the object represents an type
XmlType type = (XmlType)
getAnnotation(cls,XmlType.class);
if (type != null) {
if (log.isDebugEnabled()) {
log.debug("isJAXB returns true due to presence of @XmlType on " + cls);
}
return true;
}
if (log.isDebugEnabled()) {
log.debug("isJAXB returns false for" + cls);
}
return false;
}
ArtifactProcessor.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:wso2-axis2
作者:
评论列表
文章目录