/** * Get an implementation class annotated with @WebService annotation. */ private void validateEndpointClass() throws BadCommandLineException { Class clazz = null; for(String cls : endpoints){ clazz = getClass(cls); if (clazz == null) continue; if (clazz.isEnum() || clazz.isInterface() || clazz.isPrimitive()) { continue; } isImplClass = true; WebService webService = (WebService) clazz.getAnnotation(WebService.class); if(webService == null) continue; break; } if(clazz == null){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoints.get(0))); } if(!isImplClass){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(clazz.getName())); } endpoint = clazz; validateBinding(); }
/** * Get an implementation class annotated with @WebService annotation. */ private void validateEndpointClass() throws BadCommandLineException { Class clazz = null; for(String cls : endpoints){ clazz = getClass(cls); if (clazz == null) continue; if (clazz.isEnum() || clazz.isInterface() || clazz.isPrimitive()) { continue; } isImplClass = true; WebService webService = (WebService) clazz.getAnnotation(WebService.class); if(webService == null) continue; break; } if(clazz == null){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoints.get(0))); } if(!isImplClass){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(clazz.getName())); } endpoint = clazz; validateBinding(); }
/** * Get an implementation class annotated with @WebService annotation. */ private void validateEndpointClass() throws BadCommandLineException { Class clazz = null; for(String cls : endpoints){ clazz = getClass(cls); if (clazz == null) continue; if (clazz.isEnum() || clazz.isInterface() || clazz.isPrimitive()) { continue; } isImplClass = true; WebService webService = (WebService) clazz.getAnnotation(WebService.class); if(webService == null) continue; break; } if(clazz == null){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoints.get(0))); } if(!isImplClass){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(clazz.getName())); } endpoint = clazz; validateBinding(); }
/** * Get an implementation class annotated with @WebService annotation. */ private void validateEndpointClass() throws BadCommandLineException { Class clazz = null; for(String cls : endpoints){ clazz = getClass(cls); if (clazz == null) continue; if (clazz.isEnum() || clazz.isInterface() || clazz.isPrimitive()) { continue; } isImplClass = true; WebService webService = (WebService) clazz.getAnnotation(WebService.class); if(webService == null) continue; break; } if(clazz == null){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoints.get(0))); } if(!isImplClass){ throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_MUST_BE_IMPLEMENTATION_CLASS(clazz.getName())); } endpoint = clazz; validateBinding(); }
endpointClass = classLoader.loadClass(endpoint); } catch (ClassNotFoundException e) { throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));
endpointClass = classLoader.loadClass(endpoint); } catch (ClassNotFoundException e) { throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));
endpointClass = classLoader.loadClass(endpoint); } catch (ClassNotFoundException e) { throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));
endpointClass = classLoader.loadClass(endpoint); } catch (ClassNotFoundException e) { throw new BadCommandLineException(WscompileMessages.WSGEN_CLASS_NOT_FOUND(endpoint));