public class Deployable extends AbstractDependency
<deployable> tag used to configure the plugin
in the pom.xml file.| Constructor and Description |
|---|
Deployable() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
computeExtension(String packaging)
Compute the extension for a given Maven2 packaging.
|
protected String |
computeLocation(CargoProject project)
Compute the location of the current deployable.
|
org.codehaus.cargo.container.deployable.Deployable |
createDeployable(String containerId,
CargoProject project)
Create a deployable.
|
String |
getImplementation() |
Long |
getPingTimeout() |
URL |
getPingURL() |
String |
getPingUrlPath() |
Map<String,String> |
getProperties() |
protected String |
getSetterMethodName(String propertyName)
Transform a property into a method name by transforming the first letter of the property name
to uppercase.
|
protected boolean |
isTypeCompatible(CargoProject project)
Checks if deployable type is compatible with the project's packaging.
|
void |
setImplementation(String implementation) |
void |
setProperties(Map<String,String> properties) |
protected void |
setPropertiesOnDeployable(org.codehaus.cargo.container.deployable.Deployable deployable,
CargoProject project)
Set user-defined properties on the created deployable.
|
equals, findArtifactLocation, getArtifactId, getClassifier, getGroupId, getLocation, getType, hashCode, setArtifactId, setClassifier, setGroupId, setLocation, setType, toStringpublic void setProperties(Map<String,String> properties)
properties - Deployable properties.public URL getPingURL()
public String getPingUrlPath()
public Long getPingTimeout()
public void setImplementation(String implementation)
implementation - Implementation.public String getImplementation()
public org.codehaus.cargo.container.deployable.Deployable createDeployable(String containerId, CargoProject project) throws org.apache.maven.plugin.MojoExecutionException
containerId - Container identifier.project - Cargo project.org.apache.maven.plugin.MojoExecutionException - If location computation or deployable instanciation fails.protected void setPropertiesOnDeployable(org.codehaus.cargo.container.deployable.Deployable deployable,
CargoProject project)
deployable - the deployable on which to set the propertiesproject - Cargo project.protected String computeLocation(CargoProject project) throws org.apache.maven.plugin.MojoExecutionException
project - Cargo project.org.apache.maven.plugin.MojoExecutionException - If location cannot be found.protected boolean isTypeCompatible(CargoProject project)
project - Cargo project.true if the deployable type is compatible with the project's packaging.protected String computeExtension(String packaging)
packaging - Maven2 project packaging (ex: ejb, ear, rar, war, etc)Copyright © 2004–2016 Github. All rights reserved.