|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.pimento.generator.GeneratorConfig
public class GeneratorConfig
The configuration for Cinnamon ActionScript source generation and Parsley XML configuration generation.
| Constructor Summary | |
|---|---|
GeneratorConfig(CinnamonConfig config,
File templateDir,
File sourceOutputDir)
Creates a new configuration instance. |
|
GeneratorConfig(CinnamonConfig config,
File templateDir,
File sourceOutputDir,
File configOutputFile,
String serviceUrl,
int timeout)
Creates a new configuration instance. |
|
| Method Summary | |
|---|---|
void |
addPackageMapping(String javaPackage,
String asPackage)
Maps the specified Java package to an ActionScript package. |
void |
addTypeMapping(Class<?> javaType,
String asType)
Adds a type mapping to this configuration. |
String |
getActionScriptPackage(String javaPackage)
Returns the ActionScript package corresponding to the specified Java package. |
String |
getActionScriptType(Class<?> javaType)
Returns the ActionScript type corresponding to the specified Java type. |
CinnamonConfig |
getCinnamonConfig()
Returns the Cinnamon configuration instance. |
File |
getConfigOutputFile()
Returns the file to write Parsley XML configuration to. |
NamingStrategy |
getNamingStrategy()
Returns the naming strategy that will be used for matching names of ActionScript service interfaces to the names of the implementation classes. |
String |
getServiceUrl()
Returns the service URL for this configuration. |
File |
getSourceOutputDir()
Returns the source path all generated ActionScript classes and interfaces should be written to. |
File |
getTemplateDir()
Returns the directory containing all templates for ActionScript service interfaces and proxies as well as Parsley XML configuration. |
int |
getTimeout()
Returns the timeout in milliseconds for all service operations. |
void |
setNamingStrategy(NamingStrategy namingStrategy)
Sets the naming strategy that will be used for matching names of ActionScript service interfaces to the names of the implementation classes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeneratorConfig(CinnamonConfig config,
File templateDir,
File sourceOutputDir)
config - the fully processed Cinnamon configurationtemplateDir - the directory containing all templates for this generatorsourceOutputDir - the source path all generated ActionScript classes
and interfaces should be written to
public GeneratorConfig(CinnamonConfig config,
File templateDir,
File sourceOutputDir,
File configOutputFile,
String serviceUrl,
int timeout)
config - the fully processed Cinnamon configurationtemplateDir - the directory containing all templates for this generatorsourceOutputDir - the source path all generated ActionScript classes
and interfaces should be written toconfigOutputFile - the file to write Parsley XML configuration toserviceUrl - the service URL for this configurationtimeout - the timeout in milliseconds for all service operations| Method Detail |
|---|
public void addPackageMapping(String javaPackage,
String asPackage)
javaPackage - the Java packageasPackage - the correspondig ActionScript packagepublic String getActionScriptPackage(String javaPackage)
addPackageMapping
the package name will be returned unchanged.
javaPackage - the Java package
public void addTypeMapping(Class<?> javaType,
String asType)
javaType - the Java typeasType - the correspondig ActionScript typegetActionScriptType(java.lang.Class>)public String getActionScriptType(Class<?> javaType)
addTypeMapping for classes for which you registered custom
Converters or for parameter type declarations which use
an interface or superclass of a mapped class. For these kinds of
declarations the generator cannot "guess" the correspondig ActionScript
type.
javaType - the Java type
public NamingStrategy getNamingStrategy()
public void setNamingStrategy(NamingStrategy namingStrategy)
ImplPostfixNamingStrategy.
namingStrategy - the naming strategy that will be used for matching names
of ActionScript service interfaces to the names of the implementation classespublic CinnamonConfig getCinnamonConfig()
public File getTemplateDir()
public File getSourceOutputDir()
public File getConfigOutputFile()
public String getServiceUrl()
public int getTimeout()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||