public abstract class MigramiBuilder<B extends MigramiBuilder<B>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Optional<MigramiChecksumFactory> |
checksumFactory |
protected Optional<MigramiSnapshotRepository> |
repository |
protected MigramiCategoryScriptLoader |
scriptLoaders |
| Modifier | Constructor and Description |
|---|---|
protected |
MigramiBuilder() |
| Modifier and Type | Method and Description |
|---|---|
B |
addScriptLoader(MigramiCategory category,
MigramiScriptLoader loader) |
abstract Migrami |
build() |
protected void |
validate() |
B |
withChecksumfactory(MigramiChecksumFactory checksumFactory) |
B |
withClasspathScriptLoader() |
B |
withClasspathScriptLoader(MigramiCategory category) |
B |
withClasspathScriptLoader(String rootPath) |
B |
withClasspathScriptLoader(String rootPath,
MigramiCategory category) |
B |
withInMemorySnapshotRepository() |
B |
withScriptLoader(MigramiScriptLoader loader) |
B |
withSnapshotRepository(MigramiSnapshotRepository repository) |
protected MigramiCategoryScriptLoader scriptLoaders
protected Optional<MigramiSnapshotRepository> repository
protected Optional<MigramiChecksumFactory> checksumFactory
public final B withChecksumfactory(MigramiChecksumFactory checksumFactory)
public final B withClasspathScriptLoader()
public final B withClasspathScriptLoader(MigramiCategory category)
public final B withClasspathScriptLoader(String rootPath, MigramiCategory category)
public final B withScriptLoader(MigramiScriptLoader loader)
public final B addScriptLoader(MigramiCategory category, MigramiScriptLoader loader)
public final B withInMemorySnapshotRepository()
public final B withSnapshotRepository(MigramiSnapshotRepository repository)
protected void validate()
public abstract Migrami build()
Copyright © 2020. All rights reserved.