embulk-standards/src/main/java/org/embulk/standards/StandardPluginModule.java in embulk-0.4.10 vs embulk-standards/src/main/java/org/embulk/standards/StandardPluginModule.java in embulk-0.5.0

- old
+ new

@@ -2,17 +2,21 @@ import com.google.common.base.Preconditions; import com.google.inject.Binder; import com.google.inject.Module; import com.google.inject.name.Names; +import com.google.inject.multibindings.Multibinder; import org.embulk.spi.FormatterPlugin; import org.embulk.spi.InputPlugin; import org.embulk.spi.OutputPlugin; import org.embulk.spi.ParserPlugin; import org.embulk.spi.DecoderPlugin; import org.embulk.spi.EncoderPlugin; +import org.embulk.exec.GuessExecutor; +import org.embulk.plugin.PluginType; import static org.embulk.plugin.InjectedPluginSource.registerPluginTo; +import static org.embulk.exec.GuessExecutor.registerDefaultGuessPluginTo; public class StandardPluginModule implements Module { @Override @@ -37,7 +41,12 @@ // formatter plugins registerPluginTo(binder, FormatterPlugin.class, "csv", CsvFormatterPlugin.class); // file encoder plugins registerPluginTo(binder, EncoderPlugin.class, "gzip", GzipFileEncoderPlugin.class); + + // default guess plugins + registerDefaultGuessPluginTo(binder, new PluginType("gzip")); + registerDefaultGuessPluginTo(binder, new PluginType("csv")); + // charset and newline guess plugins are loaded and invoked by CsvGuessPlugin } }