org.apache.camel.maven
Class CamelSalesforceMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.camel.maven.CamelSalesforceMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="generate",
      defaultPhase=GENERATE_SOURCES)
public class CamelSalesforceMojo
extends org.apache.maven.plugin.AbstractMojo

Goal which generates POJOs for Salesforce SObjects


Nested Class Summary
static class CamelSalesforceMojo.GeneratorUtility
           
 
Field Summary
protected  String clientId
          Salesforce client id
protected  String clientSecret
          Salesforce client secret
protected  String excludePattern
          Exclude Salesforce SObjects that match pattern
protected  String[] excludes
          Do NOT generate POJOs for these Salesforce SObjects
protected  String includePattern
          Include Salesforce SObjects that match pattern
protected  String[] includes
          Names of Salesforce SObject for which POJOs must be generated
protected  File outputDirectory
          Location of the file.
protected  String packageName
          Java package name for generated POJOs
protected  String password
          Salesforce password
protected  String userName
          Salesforce user name
protected  String version
          Salesforce version
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
CamelSalesforceMojo()
           
 
Method Summary
 void execute()
          Execute the mojo to generate SObject POJOs
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

clientId

@Parameter(property="camelSalesforce.clientId",
           required=true)
protected String clientId
Salesforce client id


clientSecret

@Parameter(property="camelSalesforce.clientSecret",
           required=true)
protected String clientSecret
Salesforce client secret


userName

@Parameter(property="camelSalesforce.userName",
           required=true)
protected String userName
Salesforce user name


password

@Parameter(property="camelSalesforce.password",
           required=true)
protected String password
Salesforce password


version

@Parameter(property="camelSalesforce.version",
           defaultValue="27.0")
protected String version
Salesforce version


outputDirectory

@Parameter(property="camelSalesforce.outputDirectory",
           defaultValue="${project.build.directory}/generated-sources/camel-salesforce")
protected File outputDirectory
Location of the file.


includes

@Parameter
protected String[] includes
Names of Salesforce SObject for which POJOs must be generated


excludes

@Parameter
protected String[] excludes
Do NOT generate POJOs for these Salesforce SObjects


includePattern

@Parameter(property="camelSalesforce.includePattern")
protected String includePattern
Include Salesforce SObjects that match pattern


excludePattern

@Parameter(property="camelSalesforce.excludePattern")
protected String excludePattern
Exclude Salesforce SObjects that match pattern


packageName

@Parameter(property="camelSalesforce.packageName",
           defaultValue="org.apache.camel.salesforce.dto")
protected String packageName
Java package name for generated POJOs

Constructor Detail

CamelSalesforceMojo

public CamelSalesforceMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Execute the mojo to generate SObject POJOs

Throws:
org.apache.maven.plugin.MojoExecutionException


Apache Camel