Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »


Re-use an existing container installation


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 DefaultConfigurationFactory which automatically maps the right implementation for the container you're using. For example:
  • By using the DefaultContainerFactory which has a constructor for creating a Container and a Configuration at the same time. For example:

Example using the Ant API

  • No labels