com.sun.tools.ws.processor.modeler.annotation
Class WebServiceAP
java.lang.Object
com.sun.tools.ws.processor.modeler.annotation.WebServiceAP
- All Implemented Interfaces:
- AnnotationProcessor, ModelBuilder, WebServiceConstants
public class WebServiceAP
- extends Object
- implements AnnotationProcessor, ModelBuilder, WebServiceConstants
WebServiceAP is a APT AnnotationProcessor for processing javax.jws.* and
javax.xml.ws.* annotations. This class is used either by the WsGen (CompileTool) tool or
idirectly via the AnnotationProcessorFactoryImpl
when invoked by APT.
Fields inherited from interface com.sun.tools.ws.processor.modeler.annotation.WebServiceConstants |
BEAN, BINDING, COLLECTION_CLASSNAME, DOT, EMTPY_NAMESPACE_ID, EXCEPTION_CLASSNAME, FAULT_INFO, GET_FAULT_INFO, GET_PREFIX, HANDLER, HANDLER_CHAIN, HANDLER_CHAIN_NAME, HANDLER_CLASS, HANDLER_CONFIG, HANDLER_NAME, HOLDER_CLASSNAME, HTTP_PREFIX, INIT_PARAM, IS_PREFIX, JAVA_LANG_OBJECT, JAXWS, JAXWS_PACKAGE_PD, MAP_CLASSNAME, PARAM_NAME, PARAM_VALUE, PD, PD_JAXWS_PACKAGE_PD, PORT, REMOTE_CLASSNAME, REMOTE_EXCEPTION_CLASSNAME, RESPONSE, RETURN, RETURN_CAPPED, RETURN_VALUE, RUNTIME_EXCEPTION_CLASSNAME, SERIALIZABLE_CLASSNAME, SERVICE, SIGC_INNERCLASS, SIGC_UNDERSCORE, SOAP_HEADER, SOAP_ROLE, WEBSERVICE_NAMESPACE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
apEnv
protected AnnotationProcessorEnvironment apEnv
context
protected AnnotationProcessorContext context
messager
protected Messager messager
WebServiceAP
public WebServiceAP(WsgenOptions options,
AnnotationProcessorContext context,
ErrorReceiver receiver,
PrintStream out)
run
public void run()
parseArguments
protected boolean parseArguments(String[] args)
init
public void init(AnnotationProcessorEnvironment apEnv)
getAPEnv
public AnnotationProcessorEnvironment getAPEnv()
- Specified by:
getAPEnv
in interface ModelBuilder
getOptions
public WsgenOptions getOptions()
- Specified by:
getOptions
in interface ModelBuilder
getSourceDir
public File getSourceDir()
- Specified by:
getSourceDir
in interface ModelBuilder
onError
public void onError(String message)
- Specified by:
onError
in interface ModelBuilder
onError
public void onError(SourcePosition pos,
Localizable msg)
throws ModelerException
- Specified by:
onError
in interface ModelBuilder
- Throws:
ModelerException
onWarning
public void onWarning(String message)
onInfo
public void onInfo(String message)
report
protected void report(String msg)
process
public void process()
- Specified by:
process
in interface AnnotationProcessor
checkAndSetProcessed
public boolean checkAndSetProcessed(TypeDeclaration typeDecl)
- Specified by:
checkAndSetProcessed
in interface ModelBuilder
clearProcessed
public void clearProcessed()
setService
public void setService(Service service)
- Specified by:
setService
in interface ModelBuilder
setPort
public void setPort(Port port)
- Specified by:
setPort
in interface ModelBuilder
addOperation
public void addOperation(Operation operation)
setWrapperGenerated
public void setWrapperGenerated(boolean wrapperGenerated)
- Specified by:
setWrapperGenerated
in interface ModelBuilder
getTypeDeclaration
public TypeDeclaration getTypeDeclaration(String typeName)
- Specified by:
getTypeDeclaration
in interface ModelBuilder
getSourceVersion
public String getSourceVersion()
- Specified by:
getSourceVersion
in interface ModelBuilder
createWrapperGenerator
protected WebServiceVisitor createWrapperGenerator()
shouldProcessWebService
protected boolean shouldProcessWebService(javax.jws.WebService webService)
isException
public boolean isException(TypeDeclaration typeDecl)
isRemoteException
public boolean isRemoteException(TypeDeclaration typeDecl)
- Specified by:
isRemoteException
in interface ModelBuilder
isRemote
public boolean isRemote(TypeDeclaration typeDecl)
- Specified by:
isRemote
in interface ModelBuilder
isSubtype
public static boolean isSubtype(TypeDeclaration d1,
TypeDeclaration d2)
getMethodSig
public static String getMethodSig(MethodDeclaration method)
getOperationName
public String getOperationName(String messageName)
- Specified by:
getOperationName
in interface ModelBuilder
getResponseName
public String getResponseName(String operationName)
- Specified by:
getResponseName
in interface ModelBuilder
getHolderValueType
public TypeMirror getHolderValueType(TypeMirror type)
- Specified by:
getHolderValueType
in interface ModelBuilder
canOverWriteClass
public boolean canOverWriteClass(String className)
- Specified by:
canOverWriteClass
in interface ModelBuilder
log
public void log(String msg)
- Specified by:
log
in interface ModelBuilder
getXMLName
public String getXMLName(String javaName)
- Specified by:
getXMLName
in interface ModelBuilder