src/share/jaxws_classes/com/sun/tools/internal/ws/processor/modeler/annotation/WebServiceWrapperGenerator.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 122,147 **** --- 122,151 ---- AnnotationReader<TypeMirror, TypeElement, ?, ExecutableElement> annReader, Navigator<TypeMirror, TypeElement, ?, ExecutableElement> nav, BeanMemberFactory<TypeMirror, MemberInfo> beanMemberFactory) { super(annReader, nav, beanMemberFactory); } + @Override protected TypeMirror getSafeType(TypeMirror type) { return WebServiceWrapperGenerator.this.getSafeType(type); } + @Override protected TypeMirror getHolderValueType(TypeMirror paramType) { return builder.getHolderValueType(paramType); } + @Override protected boolean isVoidType(TypeMirror type) { return type != null && type.getKind().equals(TypeKind.VOID); } } private static final class FieldFactory implements AbstractWrapperBeanGenerator.BeanMemberFactory<TypeMirror, MemberInfo> { + @Override public MemberInfo createWrapperBeanMember(TypeMirror paramType, String paramName, List<Annotation> jaxb) { return new MemberInfo(paramType, paramName, jaxb); } }
*** 149,169 **** --- 153,176 ---- public WebServiceWrapperGenerator(ModelBuilder builder, AnnotationProcessorContext context) { super(builder, context); makeSafeVisitor = new MakeSafeTypeVisitor(builder.getProcessingEnvironment()); } + @Override protected void processWebService(WebService webService, TypeElement d) { cm = new JCodeModel(); wrapperNames = new HashSet<String>(); processedExceptions = new HashSet<String>(); } + @Override protected void postProcessWebService(WebService webService, TypeElement d) { super.postProcessWebService(webService, d); doPostProcessWebService(webService, d); } + @SuppressWarnings("CallToThreadDumpStack") protected void doPostProcessWebService(WebService webService, TypeElement d) { if (cm != null) { File sourceDir = builder.getSourceDir(); assert(sourceDir != null); WsgenOptions options = builder.getOptions();
*** 176,185 **** --- 183,193 ---- e.printStackTrace(); } } } + @Override protected void processMethod(ExecutableElement method, WebMethod webMethod) { builder.log("WrapperGen - method: "+method); builder.log("method.getDeclaringType(): " + method.asType()); if (wrapped && soapStyle.equals(SOAPStyle.DOCUMENT)) { generateWrappers(method, webMethod);