org.codehaus.cargo.maven2.configuration
Class Deployable
java.lang.Object
org.codehaus.cargo.maven2.configuration.AbstractDependency
org.codehaus.cargo.maven2.configuration.Deployable
public class Deployable
- extends AbstractDependency
Holds configuration data for the <deployable>
tag used to configure
the plugin in the pom.xml
file.
- Version:
- $Id: Deployable.java 1678 2008-07-24 21:43:31Z mwringe $
Methods inherited from class org.codehaus.cargo.maven2.configuration.AbstractDependency |
findArtifactLocation, getArtifactId, getClassifier, getGroupId, getLocation, getType, setArtifactId, setClassifier, setGroupId, setLocation, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Deployable
public Deployable()
getProperties
public java.util.Map getProperties()
setProperties
public void setProperties(java.util.Map properties)
getPingURL
public java.net.URL getPingURL()
getPingTimeout
public java.lang.Long getPingTimeout()
setImplementation
public void setImplementation(java.lang.String implementation)
getImplementation
public java.lang.String getImplementation()
createDeployable
public Deployable createDeployable(java.lang.String containerId,
CargoProject project)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
setPropertiesOnDeployable
protected void setPropertiesOnDeployable(Deployable deployable,
CargoProject project)
- Set user-defined properties on the created deployable.
- Parameters:
deployable
- the deployable on which to set the properties
computeLocation
protected java.lang.String computeLocation(CargoProject project)
throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
isTypeCompatible
protected boolean isTypeCompatible(CargoProject project)
- Returns:
- true if the deployable type is compatible with the project's packaging
computeExtension
protected java.lang.String computeExtension(java.lang.String packaging)
- Parameters:
packaging
- the Maven project packaging (ex: ejb, ear, rar, war, etc)
- Returns:
- the artifact extension matching the packaging
getSetterMethodName
protected java.lang.String getSetterMethodName(java.lang.String propertyName)
- Transform a property into a method name by transforming the first letter of the property
name to uppercase.
- Parameters:
propertyName
- the property name to transform into a setter method
- Returns:
- the setter method's name
Copyright © 2004-2011 Codehaus. All Rights Reserved.