|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.util.log.LoggedObject
org.codehaus.cargo.generic.spi.AbstractGenericHintFactory
org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory
org.codehaus.cargo.generic.deployer.DefaultDeployerFactory
public class DefaultDeployerFactory
Default DeployerFactory implementation that has all the known container
deployers registered against their containers. It also supports registering new
deployers against any container.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.cargo.generic.spi.AbstractGenericHintFactory |
|---|
AbstractGenericHintFactory.GenericParameters |
| Constructor Summary | |
|---|---|
DefaultDeployerFactory()
Register default deployers. |
|
| Method Summary | |
|---|---|
org.codehaus.cargo.container.deployer.Deployer |
createDeployer(org.codehaus.cargo.container.Container container)
Create a Deployer instance whose type matches the container's type. |
org.codehaus.cargo.container.deployer.Deployer |
createDeployer(org.codehaus.cargo.container.Container container,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
Create a Deployer instance matching the specified container and type. |
protected java.lang.Object |
createInstance(java.lang.reflect.Constructor constructor,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
Create an implementation class instance. |
protected java.lang.reflect.Constructor |
getConstructor(java.lang.Class deployerClass,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
Create a constructor. |
java.lang.Class |
getDeployerClass(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
|
boolean |
isDeployerRegistered(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
|
void |
registerDeployer(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType,
java.lang.Class deployerClass)
Registers a Deployer implementation. |
void |
registerDeployer(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType,
java.lang.String deployerClassName)
Registers a deployer using a class specified as a String. |
| Methods inherited from class org.codehaus.cargo.generic.spi.AbstractIntrospectionGenericHintFactory |
|---|
createImplementation, registerImplementation |
| Methods inherited from class org.codehaus.cargo.generic.spi.AbstractGenericHintFactory |
|---|
getMapping, getMappings, hasMapping, registerImplementation |
| Methods inherited from class org.codehaus.cargo.util.log.LoggedObject |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultDeployerFactory()
| Method Detail |
|---|
public void registerDeployer(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType,
java.lang.Class deployerClass)
Deployer implementation.
registerDeployer in interface DeployerFactorycontainerId - the container attached to this deployerClassdeployerType - the deployer's type (local, remote, etc)deployerClass - the deployer implementation class to registerDeployerFactory.registerDeployer(String, DeployerType, Class)
public void registerDeployer(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType,
java.lang.String deployerClassName)
containerId - deployerType - deployerClassName - the deployer implementation class to register as a StringregisterDeployer(String, DeployerType, Class)
public boolean isDeployerRegistered(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
isDeployerRegistered in interface DeployerFactorycontainerId - the container attached to this deployer classdeployerType - the type to differentiate this deployer from others for the specified
container
DeployerFactory.isDeployerRegistered(String, DeployerType)
public java.lang.Class getDeployerClass(java.lang.String containerId,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
getDeployerClass in interface DeployerFactorycontainerId - the container attached to this deployer classdeployerType - the deployer's type
DeployerFactory.getDeployerClass(String, org.codehaus.cargo.container.deployer.DeployerType)
public org.codehaus.cargo.container.deployer.Deployer createDeployer(org.codehaus.cargo.container.Container container,
org.codehaus.cargo.container.deployer.DeployerType deployerType)
Deployer instance matching the specified container and type.
createDeployer in interface DeployerFactorycontainer - the container for which we need to create a deployer instancedeployerType - the deployer's type (local, remote, etc)
DeployerFactory.createDeployer(Container, DeployerType)public org.codehaus.cargo.container.deployer.Deployer createDeployer(org.codehaus.cargo.container.Container container)
Deployer instance whose type matches the container's type. For example
this creates a local deployer when the container's instance passed is a local container and
a remote deployer when the container's instance passed is a remote container.
createDeployer in interface DeployerFactorycontainer - the container for which we need to create a deployer instance
DeployerFactory.createDeployer(Container)
protected java.lang.reflect.Constructor getConstructor(java.lang.Class deployerClass,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
throws java.lang.NoSuchMethodException
getConstructor in class AbstractGenericHintFactorydeployerClass - implementation class for which to create the constructorhint - the hint to differentiate this implementation class from othersparameters - additional parameters necessary to create the constructor object
java.lang.NoSuchMethodException - in case of errorAbstractGenericHintFactory.getConstructor(Class, String, GenericParameters)
protected java.lang.Object createInstance(java.lang.reflect.Constructor constructor,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
throws java.lang.Exception
createInstance in class AbstractGenericHintFactoryconstructor - the constructor to use for creating the instancehint - the hint to differentiate this implementation class from othersparameters - additional parameters necessary to create the instance
java.lang.Exception - in case of errorAbstractGenericHintFactory.createInstance(java.lang.reflect.Constructor, java.lang.String, org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.GenericParameters)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||