org.codehaus.mojo.weblogic
Class ClientGenMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.weblogic.AbstractWeblogicMojo
          extended by org.codehaus.mojo.weblogic.ClientGenMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class ClientGenMojo
extends AbstractWeblogicMojo

Runs Client Gen on a given WSDL.

Version:
$Id: ClientGenMojo.java 7025 2008-05-21 01:50:58Z jonnio $
Author:
Scott Ryan, Jon Osborn

Field Summary
 
Fields inherited from class org.codehaus.mojo.weblogic.AbstractWeblogicMojo
WEBLOGIC_HOME_KEY
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
ClientGenMojo()
           
 
Method Summary
 void execute()
          This method will run client gen on the given WSDL.
 String getInputWSDL()
          Getter for property input WSDL.
 String getOutputDir()
          Getter for property output dir.
 String getPackageName()
          Getter for property package name.
 String getServiceName()
          Getter for property service name.
 String getWarName()
          Getter for the name of the war to look inside for the wsdl file
 boolean isUseEarDependency()
          Getter for the ear dependency flag
 boolean isUseServerTypes()
          Getter for the useServerTypes parameter.
 void setInputWSDL(String inInputWSDL)
          Setter for the input WSDL.
 void setOutputDir(String inOutputDir)
          Setter for the output dir.
 void setPackageName(String inPackageName)
          Setter for the package name.
 void setServiceName(String inServiceName)
          Setter for the service name.
 void setUseEarDependency(boolean useEarDependency)
          Setter for the ear dependency.
 void setUseServerTypes(boolean useServerTypes)
          Setter for the useServerTypes parameter.
 void setWarName(String warName)
          The setter for the war name.
 String toString()
          toString method: creates a String representation of the object
 
Methods inherited from class org.codehaus.mojo.weblogic.AbstractWeblogicMojo
createTargetDirectory, getArtifacts, getDefaultLogger, getDependencies, getOutputDirectory, getPluginArtifacts, getWeblogicHome, setArtifacts, setDependencies, setOutputDirectory, setPluginArtifacts, setProperties, setWeblogicHome
 
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, wait, wait, wait
 

Constructor Detail

ClientGenMojo

public ClientGenMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
This method will run client gen on the given WSDL.

Specified by:
execute in interface org.apache.maven.plugin.Mojo
Overrides:
execute in class AbstractWeblogicMojo
Throws:
org.apache.maven.plugin.MojoExecutionException - Thrown if we fail to obtain the WSDL.
See Also:
AbstractWeblogicMojo.weblogicHome

getInputWSDL

public String getInputWSDL()
Getter for property input WSDL.

Returns:
The value of input WSDL.

setInputWSDL

public void setInputWSDL(String inInputWSDL)
Setter for the input WSDL.

Parameters:
inInputWSDL - The value of input WSDL.

getOutputDir

public String getOutputDir()
Getter for property output dir.

Returns:
The value of output dir.

setOutputDir

public void setOutputDir(String inOutputDir)
Setter for the output dir.

Parameters:
inOutputDir - The value of output dir.

getPackageName

public String getPackageName()
Getter for property package name.

Returns:
The value of package name.

setPackageName

public void setPackageName(String inPackageName)
Setter for the package name.

Parameters:
inPackageName - The value of package name.

getServiceName

public String getServiceName()
Getter for property service name.

Returns:
The value of service name.

setServiceName

public void setServiceName(String inServiceName)
Setter for the service name.

Parameters:
inServiceName - The value of service name.

isUseEarDependency

public boolean isUseEarDependency()
Getter for the ear dependency flag

Returns:
true if the mojo should look in the ear for the wsdl

setUseEarDependency

public void setUseEarDependency(boolean useEarDependency)
Setter for the ear dependency.

Parameters:
useEarDependency - true if the mojo should look in the ear for the wsdl

getWarName

public String getWarName()
Getter for the name of the war to look inside for the wsdl file

Returns:
the war name inside of the ear

setWarName

public void setWarName(String warName)
The setter for the war name. Use this in conjuction with the useEarDependency flag.

Parameters:
warName - the war name to look inside

isUseServerTypes

public boolean isUseServerTypes()
Getter for the useServerTypes parameter. Returns true if the client gen should copy .class files from the class path instead of creating .java and compiling them.

Returns:
true if server types should be copied

setUseServerTypes

public void setUseServerTypes(boolean useServerTypes)
Setter for the useServerTypes parameter.

Parameters:
useServerTypes - true if the server types should be used

toString

public String toString()
toString method: creates a String representation of the object

Overrides:
toString in class AbstractWeblogicMojo
Returns:
the String representation


Copyright © 2005-2008 Codehaus. All Rights Reserved.