org.codehaus.xfire.gen.jsr181
Class AbstractServiceGenerator

java.lang.Object
  extended by org.codehaus.xfire.gen.jsr181.AbstractPlugin
      extended by org.codehaus.xfire.gen.jsr181.AbstractServiceGenerator
All Implemented Interfaces:
GeneratorPlugin
Direct Known Subclasses:
ServiceInterfaceGenerator, ServiceStubGenerator

public abstract class AbstractServiceGenerator
extends AbstractPlugin
implements GeneratorPlugin


Constructor Summary
AbstractServiceGenerator()
           
 
Method Summary
protected  void annotate(GenerationContext context, OperationInfo op, JMethod method)
           
protected  void annotate(GenerationContext context, OperationInfo op, JMethod method, Binding binding)
           
protected  void annotate(GenerationContext context, Service service, JDefinedClass jc)
           
protected  void annotate(GenerationContext context, Service service, JDefinedClass jc, Binding binding)
           
protected  void annotate(MessagePartInfo part, JVar jvar)
           
protected  void annotate(MessagePartInfo part, JVar jvar, Binding binding)
           
protected  void annotateOneWay(JMethod method)
           
protected  void annotateOutParam(MessagePartInfo part, JVar jvar)
           
protected  void annotateOutParam(MessagePartInfo part, JVar jvar, Binding binding)
           
protected  void annotateReturnType(JMethod method, MessagePartInfo returnPart)
           
protected  void annotateReturnType(JMethod method, MessagePartInfo returnPart, Binding binding)
           
 void generate(GenerationContext context)
           
 void generate(GenerationContext context, Service service)
           
protected  JClass generateExceptionClass(GenerationContext context, MessagePartInfo part, JMethod method)
           
protected  void generateFaults(GenerationContext context, OperationInfo op, JMethod method)
           
protected abstract  java.lang.String getClassName(GenerationContext context, Service service)
           
protected abstract  ClassType getClassType()
           
 Service getCurrentService()
           
protected  JType getHolderType(GenerationContext context, MessagePartInfo part)
           
protected  JType getReturnType(GenerationContext context, SchemaSupport schema, OperationInfo op)
          Find the return type for the operation.
protected  boolean isWritten(GenerationContext context)
           
 void setCurrentService(Service currentService)
           
 
Methods inherited from class org.codehaus.xfire.gen.jsr181.AbstractPlugin
getUniqueName, javify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractServiceGenerator

public AbstractServiceGenerator()
Method Detail

generate

public void generate(GenerationContext context)
              throws java.lang.Exception
Specified by:
generate in interface GeneratorPlugin
Throws:
java.lang.Exception

generate

public void generate(GenerationContext context,
                     Service service)
              throws java.lang.Exception
Throws:
java.lang.Exception

getCurrentService

public Service getCurrentService()

setCurrentService

public void setCurrentService(Service currentService)

isWritten

protected boolean isWritten(GenerationContext context)

annotateOneWay

protected void annotateOneWay(JMethod method)

getHolderType

protected JType getHolderType(GenerationContext context,
                              MessagePartInfo part)
                       throws GenerationException
Throws:
GenerationException

generateFaults

protected void generateFaults(GenerationContext context,
                              OperationInfo op,
                              JMethod method)
                       throws GenerationException
Throws:
GenerationException

generateExceptionClass

protected JClass generateExceptionClass(GenerationContext context,
                                        MessagePartInfo part,
                                        JMethod method)
                                 throws GenerationException
Throws:
GenerationException

getClassName

protected abstract java.lang.String getClassName(GenerationContext context,
                                                 Service service)

getClassType

protected abstract ClassType getClassType()

annotate

protected void annotate(GenerationContext context,
                        OperationInfo op,
                        JMethod method)

annotate

protected void annotate(GenerationContext context,
                        OperationInfo op,
                        JMethod method,
                        Binding binding)

annotateOutParam

protected void annotateOutParam(MessagePartInfo part,
                                JVar jvar)

annotateOutParam

protected void annotateOutParam(MessagePartInfo part,
                                JVar jvar,
                                Binding binding)

annotateReturnType

protected void annotateReturnType(JMethod method,
                                  MessagePartInfo returnPart)

annotateReturnType

protected void annotateReturnType(JMethod method,
                                  MessagePartInfo returnPart,
                                  Binding binding)

annotate

protected void annotate(MessagePartInfo part,
                        JVar jvar)

annotate

protected void annotate(MessagePartInfo part,
                        JVar jvar,
                        Binding binding)

getReturnType

protected JType getReturnType(GenerationContext context,
                              SchemaSupport schema,
                              OperationInfo op)
                       throws GenerationException
Find the return type for the operation. If there is no output message void is returned.

Throws:
GenerationException

annotate

protected void annotate(GenerationContext context,
                        Service service,
                        JDefinedClass jc)

annotate

protected void annotate(GenerationContext context,
                        Service service,
                        JDefinedClass jc,
                        Binding binding)


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.