use of com.sun.enterprise.deployment.annotation.context.WebBundleContext in project Payara by payara.
the class WebServiceUtils method isJaxwsRIDeployment.
/**
* If WEB-INF/sun-jaxws.xml exists and is not processed in EJB context , then it returns true.
* @param annInfo
* @return
*/
static boolean isJaxwsRIDeployment(AnnotationInfo annInfo) {
boolean riDeployment = false;
AnnotatedElementHandler annCtx = annInfo.getProcessingContext().getHandler();
try {
ReadableArchive moduleArchive = annInfo.getProcessingContext().getArchive();
if (moduleArchive != null && moduleArchive.exists("WEB-INF/sun-jaxws.xml") && !((Class) annInfo.getAnnotatedElement()).isInterface() && ((annCtx instanceof WebBundleContext) || (annCtx instanceof WebComponentContext))) {
riDeployment = true;
}
} catch (Exception e) {
// continue, processing
}
return riDeployment;
}
Aggregations