Skip to content

Commit

Permalink
Add JavaDoc to factory again
Browse files Browse the repository at this point in the history
  • Loading branch information
huangsam committed Dec 9, 2024
1 parent 5781d84 commit 4907e35
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,19 @@
import java.security.GeneralSecurityException;
import java.util.List;

/**
* A factory class for creating {@link Migrator} instances based on the desired
* migration strategy.
*/
public class MigratorFactory {
/**
* Create instance for migrating photos.
*
* @param mode migrator mode
* @param settings application settings
* @param resolver photo resolver
* @return {@code Migrator} instance
* @throws MigratorException due to bad setup
* @param settings settings for migration process
* @param resolver photo resolver for target path
* @return migrator instance
* @throws MigratorException due to setup issues
*/
public Migrator make(@NotNull MigratorMode mode, Settings settings, PhotoResolver resolver) throws MigratorException {
return switch (mode) {
Expand Down

0 comments on commit 4907e35

Please sign in to comment.