Definition
Re-use an existing container installation
Explanations
An existing configuration plugs itself onto an existing container installation that exists on your hard disk. This is by opposition to the Standalone Configuration which creates a new container installation from scratch in a directory of your choice.
There are different ways of using an existing 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:
- By using the
DefaultContainerFactorywhich has a constructor for creating aContainerand aConfigurationat the same time. For example:
Example using the Ant API
Labels