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
Modifier and TypeFieldDescriptionprotected AnnotationProcessorContext
static final String
static final String
static final String
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canOverWriteClass
(String className) boolean
checkAndSetProcessed
(TypeElement typeElement) getHolderValueType
(TypeMirror type) getOperationName
(Name messageName) void
init
(ProcessingEnvironment processingEnv) boolean
isRemote
(TypeElement typeElement) boolean
isServiceException
(TypeMirror typeMirror) Checks if type is a service specific exceptionvoid
boolean
process
(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) void
processError
(String message) void
processError
(String message, Element element) void
processWarning
(String message) protected void
Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedAnnotationTypes, getSupportedOptions, isInitialized
-
Field Details
-
DO_NOT_OVERWRITE
- See Also:
-
IGNORE_NO_WEB_SERVICE_FOUND_WARNING
- See Also:
-
VERBOSE
- See Also:
-
context
-
-
Constructor Details
-
WebServiceAp
public WebServiceAp() -
WebServiceAp
-
-
Method Details
-
init
- Specified by:
init
in interfaceProcessor
- Overrides:
init
in classAbstractProcessor
-
process
- Specified by:
process
in interfaceProcessor
- Specified by:
process
in classAbstractProcessor
-
processWarning
- Specified by:
processWarning
in interfaceModelBuilder
-
report
-
processError
- Specified by:
processError
in interfaceModelBuilder
-
processError
- Specified by:
processError
in interfaceModelBuilder
-
canOverWriteClass
- Specified by:
canOverWriteClass
in interfaceModelBuilder
-
getSourceDir
- Specified by:
getSourceDir
in interfaceModelBuilder
-
isRemote
- Specified by:
isRemote
in interfaceModelBuilder
-
isServiceException
Description copied from interface:ModelBuilder
Checks if type is a service specific exception- Specified by:
isServiceException
in interfaceModelBuilder
- Parameters:
typeMirror
- the given element's type- Returns:
- true if is not a service specific exception as defined by JAX-WS specification
-
getHolderValueType
- Specified by:
getHolderValueType
in interfaceModelBuilder
-
checkAndSetProcessed
- Specified by:
checkAndSetProcessed
in interfaceModelBuilder
-
log
- Specified by:
log
in interfaceModelBuilder
-
getOptions
- Specified by:
getOptions
in interfaceModelBuilder
-
getProcessingEnvironment
- Specified by:
getProcessingEnvironment
in interfaceModelBuilder
-
getOperationName
- Specified by:
getOperationName
in interfaceModelBuilder
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersion
in interfaceProcessor
- Overrides:
getSupportedSourceVersion
in classAbstractProcessor
-