Class MultipleJGitEnvironmentRepository

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.InitializingBean, EnvironmentRepository, SearchPathLocator, org.springframework.context.ResourceLoaderAware, org.springframework.core.Ordered

    public class MultipleJGitEnvironmentRepository
    extends JGitEnvironmentRepository
    EnvironmentRepository that based on one or more git repositories. Can be configured just like a single JGitEnvironmentRepository, for the "default" properties, and then additional repositories can be registered by name. The simplest form of the registration is just a map from name to uri (plus credentials if needed), where each app has its own git repository. As well as a name you can provide a pattern that matches on the application name (or even a list of patterns). Each sub-repository additionally can have its own search paths (subdirectories inside the top level of the repository).
    Author:
    Andy Chan (iceycake), Dave Syer, Gareth Clay