org.spicefactory.pimento.generator.ant
Class CinnamonGeneratorTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.spicefactory.pimento.generator.ant.AbstractCinnamonGeneratorTask
              extended by org.spicefactory.pimento.generator.ant.CinnamonGeneratorTask
All Implemented Interfaces:
Cloneable

public class CinnamonGeneratorTask
extends AbstractCinnamonGeneratorTask

Ant Task that generates AS3 source code for service interfaces and proxies and Parsley XML configuration files based on Cinnamon's own XML configuration format.

Author:
Jens Halm

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
CinnamonGeneratorTask()
           
 
Method Summary
protected  ConfigurationBuilder createConfigurationBuilder(File configFile)
          Creates the ConfigurationBuilder implementation this Ant Task should use.
 
Methods inherited from class org.spicefactory.pimento.generator.ant.AbstractCinnamonGeneratorTask
addAs3SourceGenerator, addPackageMapping, addParsleyConfigGenerator, addTypeMapping, execute, setConfigFile, setNamingStrategy, setTemplateDir
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, 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, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CinnamonGeneratorTask

public CinnamonGeneratorTask()
Method Detail

createConfigurationBuilder

protected ConfigurationBuilder createConfigurationBuilder(File configFile)
Description copied from class: AbstractCinnamonGeneratorTask
Creates the ConfigurationBuilder implementation this Ant Task should use.

There are two builtin implementation: SpringConfigurationBuilder which uses a Spring ApplicationContext for configuration and XmlConfigurationParser which processes Cinnamon's own custom XML configuration format.

Specified by:
createConfigurationBuilder in class AbstractCinnamonGeneratorTask
Parameters:
configFile - the file to load the configuration from
Returns:
the ConfigurationBuilder implementation this Ant Task should use