org.codehaus.mojo.weblogic
Class AbstractWeblogicMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.weblogic.AbstractWeblogicMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
AppcMojo, ClientGen9Mojo, ClientGenMojo, DeployMojoBase, JwscMojo, ServiceGenMojo, WsdlGenMojo

public abstract class AbstractWeblogicMojo
extends org.apache.maven.plugin.AbstractMojo

This class wraps handling for common functions for all weblogic plugin implementations. Specifically, this class manages the all important 'weblogic.home' property.

Version:
$Id: AbstractWeblogicMojo.java 7803 2008-10-03 01:28:10Z jonnio $
Author:
Jon Osborn

Field Summary
static String WEBLOGIC_HOME_KEY
          Property key for weblogic.home
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractWeblogicMojo()
           
 
Method Summary
protected  void createTargetDirectory()
          Creates the target directory if it is missing from the file system.
 void execute()
          Sets system property for weblogic.home
 Set getArtifacts()
          Getter for property artifacts.
protected  org.apache.tools.ant.BuildListener getDefaultLogger()
          Generate a logger by using the default settings.
 List getDependencies()
          Getter for the list of dependencies
 String getOutputDirectory()
          Getter for the outputDirectory
 List getPluginArtifacts()
          The artifacts managed to the plugin
 String getWeblogicHome()
          Getter for weblogic.home
 void setArtifacts(Set inArtifacts)
          Setter for the artifacts.
 void setDependencies(List dependencies)
          Setter for the dependencies
 void setOutputDirectory(String outputDirectory)
          Setter for the output directory
 void setPluginArtifacts(List pluginArtifacts)
          Setter for the plugin artifacts
protected  void setProperties()
          Sets the weblogic.home property
 void setWeblogicHome(String weblogicHome)
          Setter for weblogic.home
 String toString()
          Meaningful toString
 
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
 

Field Detail

WEBLOGIC_HOME_KEY

public static final String WEBLOGIC_HOME_KEY
Property key for weblogic.home

See Also:
Constant Field Values
Constructor Detail

AbstractWeblogicMojo

public AbstractWeblogicMojo()
Method Detail

getWeblogicHome

public String getWeblogicHome()
Getter for weblogic.home

Returns:
weblogic.home

setWeblogicHome

public void setWeblogicHome(String weblogicHome)
Setter for weblogic.home

Parameters:
weblogicHome - - a fully qualified path to weblogic home directory

getArtifacts

public Set getArtifacts()
Getter for property artifacts.

Returns:
The value of artifacts.

setArtifacts

public final void setArtifacts(Set inArtifacts)
Setter for the artifacts.

Parameters:
inArtifacts - The value of artifacts.

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Sets system property for weblogic.home

Throws:
org.apache.maven.plugin.MojoExecutionException
See Also:
weblogicHome

setProperties

protected void setProperties()
Sets the weblogic.home property

See Also:
WEBLOGIC_HOME_KEY, System.setProperty(String, String)

getDefaultLogger

protected org.apache.tools.ant.BuildListener getDefaultLogger()
Generate a logger by using the default settings.

Returns:
a default logger that logs to System.out and System.err

createTargetDirectory

protected void createTargetDirectory()
Creates the target directory if it is missing from the file system.


getOutputDirectory

public String getOutputDirectory()
Getter for the outputDirectory

Returns:
- this.outputDirectory

setOutputDirectory

public void setOutputDirectory(String outputDirectory)
Setter for the output directory

Parameters:
outputDirectory - - the directory to write to

getDependencies

public List getDependencies()
Getter for the list of dependencies

Returns:
the dependencies

setDependencies

public void setDependencies(List dependencies)
Setter for the dependencies

Parameters:
dependencies - the dependencies to set

getPluginArtifacts

public List getPluginArtifacts()
The artifacts managed to the plugin

Returns:
the list of plugin artifacts

setPluginArtifacts

public void setPluginArtifacts(List pluginArtifacts)
Setter for the plugin artifacts

Parameters:
pluginArtifacts - the artifacts to set

toString

public String toString()
Meaningful toString

Overrides:
toString in class Object
Returns:
the string representation of this object


Copyright © 2005-2008 Codehaus. All Rights Reserved.