A configuration for a container that is already started
The container could be executing on the same machine as where Cargo is executing or anywhere else. The important part is that Cargo is accessing that container using a remote access protocol and the container is considered as a black box.
Example using the Java API
There are different ways of using a runtime configuration:
- By directly instantiating the configuration matching your container. For example:
- By using the
DefaultConfigurationFactorywhich automatically maps the right implementation for the container you're using. For example: