Class RepositoryModule

    • Constructor Detail

      • RepositoryModule

        public RepositoryModule(RepositoryName repositoryName,
                                Settings settings,
                                Settings globalSettings,
                                RepositoryTypesRegistry typesRegistry)
        Spawns module for repository with specified name, type and settings
        Parameters:
        repositoryName - repository name and type
        settings - repository settings
        globalSettings - global settings
        typesRegistry - registry of repository types
    • Method Detail

      • spawnModules

        public Iterable<? extends Module> spawnModules()
        Returns repository module.

        First repository type is looked up in typesRegistry and if it's not found there, this module tries to load repository by it's class name.
        Specified by:
        spawnModules in interface  SpawnModules
        Returns:
        repository module
      • configure

        protected void configure()
        Configures a Binder via the exposed methods.