org.codehaus.cargo.container.deployer
Class DeployerType

java.lang.Object
  extended by org.codehaus.cargo.container.deployer.DeployerType

public final class DeployerType
extends java.lang.Object

Type of Deployer. Can be a installed, embedded or remote.

Version:
$Id: DeployerType.java 1152 2006-07-26 13:35:01Z vmassol $

Field Summary
static DeployerType EMBEDDED
          A deployer type to deploy to an embedded local container.
static DeployerType INSTALLED
          A deployer type to deploy to an installed local container.
static DeployerType REMOTE
          A deployer type to deploy to a remote container.
 
Method Summary
 boolean equals(java.lang.Object object)
          
 java.lang.String getType()
           
 int hashCode()
          
 boolean isLocal()
           
 boolean isRemote()
           
 java.lang.String toString()
          
static DeployerType toType(ContainerType containerType)
          Converts a ContainerType to the corresponding DeployerType.
static DeployerType toType(java.lang.String typeAsString)
          Transform a type represented as a string into a DeployerType object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTALLED

public static final DeployerType INSTALLED
A deployer type to deploy to an installed local container.


REMOTE

public static final DeployerType REMOTE
A deployer type to deploy to a remote container.


EMBEDDED

public static final DeployerType EMBEDDED
A deployer type to deploy to an embedded local container.

Method Detail

toType

public static DeployerType toType(java.lang.String typeAsString)
Transform a type represented as a string into a DeployerType object.

Parameters:
typeAsString - the string to transform
Returns:
the DeployerType object

toType

public static DeployerType toType(ContainerType containerType)
Converts a ContainerType to the corresponding DeployerType.

Parameters:
containerType - the container type to be converted.
Returns:
the deployer type

equals

public boolean equals(java.lang.Object object)

Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

getType

public java.lang.String getType()
Returns:
the deployer's type

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

isLocal

public boolean isLocal()
Returns:
true if the deployer type is a local type (installed or embedded)

isRemote

public boolean isRemote()
Returns:
true if the deployer type is a remote type


Copyright © 2004-2010 Codehaus. All Rights Reserved.