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 $
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 classdeployableType
- the type to differentiate this deployable from others for the specified
containerdeployableClass
- the deployable implementation class to register
isDeployableRegistered
boolean isDeployableRegistered(String containerId,
DeployableType deployableType)
- Parameters:
containerId
- the container attached to the deployable type classdeployableType
- 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 fordeployableLocation
- the location of the Deployable being wrapped. It must point to
a WAR file, an EAR file or an exanded WAR directorydeployableType
- the deployable type to create
- Returns:
- the
Deployable
instance
Copyright © 2004-2012 Codehaus. All Rights Reserved.