org.codehaus.cargo.generic.deployable
Interface DeployableFactory

All Known Implementing Classes:
DefaultDeployableFactory

public interface DeployableFactory

Factory to create Deployable instances.

Version:
$Id: DeployableFactory.java 1705 2008-09-02 13:14:55Z adriana $

Method Summary
 Deployable createDeployable(String containerId, String deployableLocation, DeployableType deployableType)
           
 boolean isDeployableRegistered(String containerId, DeployableType deployableType)
           
 void registerDeployable(String containerId, DeployableType deployableType, Class deployableClass)
          Registers a deployable implementation against a container.
 

Method Detail

registerDeployable

void registerDeployable(String containerId,
                        DeployableType deployableType,
                        Class deployableClass)
Registers a deployable implementation against a container.

Parameters:
containerId - the container id attached to this deployable class
deployableType - the type to differentiate this deployable from others for the specified container
deployableClass - the deployable implementation class to register

isDeployableRegistered

boolean isDeployableRegistered(String containerId,
                               DeployableType deployableType)
Parameters:
containerId - the container attached to the deployable type class
deployableType - the type to differentiate this deployable from others for the specified container
Returns:
true if the specified deployable is already registered or false otherwise

createDeployable

Deployable createDeployable(String containerId,
                            String deployableLocation,
                            DeployableType deployableType)
Parameters:
containerId - the container id for which to create the deployable for
deployableLocation - the location of the Deployable being wrapped. It must point to a WAR file, an EAR file or an exanded WAR directory
deployableType - the deployable type to create
Returns:
the Deployable instance


Copyright © 2004-2012 Codehaus. All Rights Reserved.