com.rinoto.migramongo.lookup.ScriptLookupService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of migramongo-core Show documentation
Show all versions of migramongo-core Show documentation
Tool for migrating mongodb scripts
package com.rinoto.migramongo.lookup;
import java.util.Collection;
import com.rinoto.migramongo.InitialMongoMigrationScript;
import com.rinoto.migramongo.MongoMigrationScript;
/**
* Service to look up the scripts
*
* @author rinoto
*/
public interface ScriptLookupService {
/**
* Delivers the initialMigrationScript, or null if not found.
*
* If more than one script is found, an IllegalStateException
will be thrown.
*
* @return the initialMigrationScript, or null if not found.
*/
InitialMongoMigrationScript findInitialScript();
/**
* The mongo scripts found. Collection may be empty.
*
* @return mongo scripts found
*/
Collection findMongoScripts();
}