|
||||||||||
| 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.deployable.DefaultDeployableFactory
public class DefaultDeployableFactory
Default deployable factory that returns deployables for a given container. The reason deployable can be different for different containers is because for some container Cargo understand container-specific files. For example for Tomcat Cargo understand the context.xml file.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.cargo.generic.spi.AbstractGenericHintFactory |
|---|
AbstractGenericHintFactory.GenericParameters |
| Constructor Summary | |
|---|---|
DefaultDeployableFactory()
Register deployable classes mappings. |
|
| Method Summary | |
|---|---|
org.codehaus.cargo.container.deployable.Deployable |
createDeployable(java.lang.String containerId,
java.lang.String deployableLocation,
org.codehaus.cargo.container.deployable.DeployableType deployableType)
|
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 deployableClass,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
Create a constructor. |
boolean |
isDeployableRegistered(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType)
|
void |
registerDeployable(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType,
java.lang.Class deployableClass)
Registers a deployable implementation against a container. |
void |
registerDeployable(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType,
java.lang.String deployableClassName)
Registers a deployable 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 DefaultDeployableFactory()
| Method Detail |
|---|
public void registerDeployable(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType,
java.lang.Class deployableClass)
registerDeployable in interface DeployableFactorycontainerId - 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 registerDeployableFactory.registerDeployable(String, DeployableType, Class)
public void registerDeployable(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType,
java.lang.String deployableClassName)
containerId - deployableType - deployableClassName - the deployable implementation class to register as a StringregisterDeployable(String, DeployableType, Class)
public boolean isDeployableRegistered(java.lang.String containerId,
org.codehaus.cargo.container.deployable.DeployableType deployableType)
isDeployableRegistered in interface DeployableFactorycontainerId - the container attached to the deployable type classdeployableType - the type to differentiate this deployable from others for the specified
container
DeployableFactory.isDeployableRegistered(java.lang.String, org.codehaus.cargo.container.deployable.DeployableType)
public org.codehaus.cargo.container.deployable.Deployable createDeployable(java.lang.String containerId,
java.lang.String deployableLocation,
org.codehaus.cargo.container.deployable.DeployableType deployableType)
createDeployable in interface DeployableFactorycontainerId - 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
Deployable instanceDeployableFactory.createDeployable(java.lang.String, java.lang.String, org.codehaus.cargo.container.deployable.DeployableType)
protected java.lang.reflect.Constructor getConstructor(java.lang.Class deployableClass,
java.lang.String hint,
AbstractGenericHintFactory.GenericParameters parameters)
throws java.lang.NoSuchMethodException
getConstructor in class AbstractGenericHintFactorydeployableClass - 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(java.lang.Class, java.lang.String, org.codehaus.cargo.generic.spi.AbstractGenericHintFactory.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 | |||||||||