Class WebServiceAp
- java.lang.Object
-
- javax.annotation.processing.AbstractProcessor
-
- com.sun.tools.ws.processor.modeler.annotation.WebServiceAp
-
- All Implemented Interfaces:
ModelBuilder,Processor
- Direct Known Subclasses:
WebServiceAP
@SupportedAnnotationTypes({"javax.jws.HandlerChain","javax.jws.Oneway","javax.jws.WebMethod","javax.jws.WebParam","javax.jws.WebResult","javax.jws.WebService","javax.jws.soap.InitParam","javax.jws.soap.SOAPBinding","javax.jws.soap.SOAPMessageHandler","javax.jws.soap.SOAPMessageHandlers","javax.xml.ws.BindingType","javax.xml.ws.RequestWrapper","javax.xml.ws.ResponseWrapper","javax.xml.ws.ServiceMode","javax.xml.ws.WebEndpoint","javax.xml.ws.WebFault","javax.xml.ws.WebServiceClient","javax.xml.ws.WebServiceProvider","javax.xml.ws.WebServiceRef"}) @SupportedOptions({"doNotOverWrite","ignoreNoWebServiceFoundWarning","verbose"}) public class WebServiceAp extends AbstractProcessor implements ModelBuilder
WebServiceAp is a AnnotationProcessor for processing javax.jws.* and javax.xml.ws.* annotations. This class is used either by the WsGen (CompileTool) tool or indirectly when invoked by javac.- Author:
- WS Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected AnnotationProcessorContextcontextstatic StringDO_NOT_OVERWRITEstatic StringIGNORE_NO_WEB_SERVICE_FOUND_WARNINGstatic StringVERBOSE-
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
-
Constructor Summary
Constructors Constructor Description WebServiceAp()WebServiceAp(WsgenOptions options, PrintStream out)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanOverWriteClass(String className)booleancheckAndSetProcessed(TypeElement typeElement)TypeMirrorgetHolderValueType(TypeMirror type)StringgetOperationName(Name messageName)WsgenOptionsgetOptions()ProcessingEnvironmentgetProcessingEnvironment()FilegetSourceDir()SourceVersiongetSupportedSourceVersion()voidinit(ProcessingEnvironment processingEnv)booleanisRemote(TypeElement typeElement)booleanisServiceException(TypeMirror typeMirror)Checks if type is a service specific exceptionvoidlog(String message)booleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)voidprocessError(String message)voidprocessError(String message, Element element)voidprocessWarning(String message)protected voidreport(String msg)-
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
-
-
-
Field Detail
-
DO_NOT_OVERWRITE
public static final String DO_NOT_OVERWRITE
- See Also:
- Constant Field Values
-
IGNORE_NO_WEB_SERVICE_FOUND_WARNING
public static final String IGNORE_NO_WEB_SERVICE_FOUND_WARNING
- See Also:
- Constant Field Values
-
VERBOSE
public static final String VERBOSE
- See Also:
- Constant Field Values
-
context
protected AnnotationProcessorContext context
-
-
Constructor Detail
-
WebServiceAp
public WebServiceAp()
-
WebServiceAp
public WebServiceAp(WsgenOptions options, PrintStream out)
-
-
Method Detail
-
init
public void init(ProcessingEnvironment processingEnv)
- Specified by:
initin interfaceProcessor- Overrides:
initin classAbstractProcessor
-
process
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv)
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
processWarning
public void processWarning(String message)
- Specified by:
processWarningin interfaceModelBuilder
-
report
protected void report(String msg)
-
processError
public void processError(String message)
- Specified by:
processErrorin interfaceModelBuilder
-
processError
public void processError(String message, Element element)
- Specified by:
processErrorin interfaceModelBuilder
-
canOverWriteClass
public boolean canOverWriteClass(String className)
- Specified by:
canOverWriteClassin interfaceModelBuilder
-
getSourceDir
public File getSourceDir()
- Specified by:
getSourceDirin interfaceModelBuilder
-
isRemote
public boolean isRemote(TypeElement typeElement)
- Specified by:
isRemotein interfaceModelBuilder
-
isServiceException
public boolean isServiceException(TypeMirror typeMirror)
Description copied from interface:ModelBuilderChecks if type is a service specific exception- Specified by:
isServiceExceptionin interfaceModelBuilder- Parameters:
typeMirror- the given element's type- Returns:
- true if is not a service specific exception as defined by JAX-WS specification
-
getHolderValueType
public TypeMirror getHolderValueType(TypeMirror type)
- Specified by:
getHolderValueTypein interfaceModelBuilder
-
checkAndSetProcessed
public boolean checkAndSetProcessed(TypeElement typeElement)
- Specified by:
checkAndSetProcessedin interfaceModelBuilder
-
log
public void log(String message)
- Specified by:
login interfaceModelBuilder
-
getOptions
public WsgenOptions getOptions()
- Specified by:
getOptionsin interfaceModelBuilder
-
getProcessingEnvironment
public ProcessingEnvironment getProcessingEnvironment()
- Specified by:
getProcessingEnvironmentin interfaceModelBuilder
-
getOperationName
public String getOperationName(Name messageName)
- Specified by:
getOperationNamein interfaceModelBuilder
-
getSupportedSourceVersion
public SourceVersion getSupportedSourceVersion()
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-
-