Package org.codehaus.cargo.generic
Interface ContainerCapabilityFactory
-
- All Known Implementing Classes:
DefaultContainerCapabilityFactory
public interface ContainerCapabilityFactory
Allow finding a Container's capability by container id.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContainerCapability
createContainerCapability(String containerId)
Create aContainerCapability
instance.void
registerContainerCapability(String containerId, Class<? extends ContainerCapability> containerCapabilityClass)
-
-
-
Method Detail
-
registerContainerCapability
void registerContainerCapability(String containerId, Class<? extends ContainerCapability> containerCapabilityClass)
- Parameters:
containerId
- the id of the container to registercontainerCapabilityClass
- the container capability implementation class to register
-
createContainerCapability
ContainerCapability createContainerCapability(String containerId)
Create aContainerCapability
instance.- Parameters:
containerId
- the id under which the container will be looked up- Returns:
- the container capability instance matching the parameter passed
-
-