com.threerings.presents.tools
Class GenServiceTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.presents.tools.GenTask
              extended by com.threerings.presents.tools.InvocationTask
                  extended by com.threerings.presents.tools.GenServiceTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GenCPPServiceTask

public class GenServiceTask
extends InvocationTask

An Ant task for generating invocation service marshalling and unmarshalling classes. TODO: when generating the imports for exported action script files, there are just enough conversions of primitive types (e.g. float -> Number), array types (e.g. int[] -> TypedArray) and three rings utility types (e.g. float -> Float) to make the existing serivces work. It should be possible to create a complete list of these conversions so that future services can be generated without problems.


Nested Class Summary
 class GenServiceTask.Adapter
          Used to track services for which we should create listener adapters in actionscript.
 class GenServiceTask.Providerless
          Used to track services for which we should not generate a provider interface.
 class GenServiceTask.ServiceListener
          Used to keep track of custom InvocationListener derivations.
 
Nested classes/interfaces inherited from class com.threerings.presents.tools.InvocationTask
InvocationTask.ListenerArgument, InvocationTask.ServiceMethod
 
Constructor Summary
GenServiceTask()
           
 
Method Summary
 GenServiceTask.Adapter createAdapter()
           
 GenServiceTask.Providerless createProviderless()
           
 void processClass(File source, Class<?> service)
          Process a class found from the given source file that was on the filesets given to this task.
 void setAsroot(File asroot)
          Configures the path to our ActionScript source files.
 void setVerbose(boolean verbose)
          Configures to output extra information when generating code.
 
Methods inherited from class com.threerings.presents.tools.InvocationTask
execute
 
Methods inherited from class com.threerings.presents.tools.GenTask
addFileset, setChecking, setClasspathref, setHeader
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenServiceTask

public GenServiceTask()
Method Detail

setVerbose

public void setVerbose(boolean verbose)
Configures to output extra information when generating code.


setAsroot

public void setAsroot(File asroot)
Configures the path to our ActionScript source files.


createProviderless

public GenServiceTask.Providerless createProviderless()

createAdapter

public GenServiceTask.Adapter createAdapter()

processClass

public void processClass(File source,
                         Class<?> service)
                  throws Exception
Description copied from class: GenTask
Process a class found from the given source file that was on the filesets given to this task.

Throws:
Exception


Copyright © 2011. All Rights Reserved.