Class VersionCommandExtension

  • All Implemented Interfaces:
    org.flywaydb.core.extensibility.CommandExtension, org.flywaydb.core.extensibility.Plugin, org.flywaydb.core.extensibility.PluginMetadata

    public class VersionCommandExtension
    extends java.lang.Object
    implements org.flywaydb.core.extensibility.CommandExtension
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<java.lang.String> FLAGS  
      static java.lang.String VERSION  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandForFlag​(java.lang.String flag)  
      java.util.List<org.flywaydb.core.internal.util.Pair<java.lang.String,​java.lang.String>> getUsage()  
      org.flywaydb.core.api.output.OperationResult handle​(java.lang.String command, org.flywaydb.core.api.configuration.Configuration config, java.util.List<java.lang.String> flags)  
      boolean handlesCommand​(java.lang.String command)  
      boolean handlesParameter​(java.lang.String parameter)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.flywaydb.core.extensibility.PluginMetadata

        getConfigurationParameters, getDescription, getDocumentationLink, getExample, getFlags, getHelpText
    • Field Detail

      • FLAGS

        public static final java.util.List<java.lang.String> FLAGS
    • Constructor Detail

      • VersionCommandExtension

        public VersionCommandExtension()
    • Method Detail

      • handlesCommand

        public boolean handlesCommand​(java.lang.String command)
        Specified by:
        handlesCommand in interface org.flywaydb.core.extensibility.CommandExtension
      • getCommandForFlag

        public java.lang.String getCommandForFlag​(java.lang.String flag)
        Specified by:
        getCommandForFlag in interface org.flywaydb.core.extensibility.CommandExtension
      • handlesParameter

        public boolean handlesParameter​(java.lang.String parameter)
        Specified by:
        handlesParameter in interface org.flywaydb.core.extensibility.CommandExtension
      • handle

        public org.flywaydb.core.api.output.OperationResult handle​(java.lang.String command,
                                                                   org.flywaydb.core.api.configuration.Configuration config,
                                                                   java.util.List<java.lang.String> flags)
                                                            throws org.flywaydb.core.api.FlywayException
        Specified by:
        handle in interface org.flywaydb.core.extensibility.CommandExtension
        Throws:
        org.flywaydb.core.api.FlywayException
      • getUsage

        public java.util.List<org.flywaydb.core.internal.util.Pair<java.lang.String,​java.lang.String>> getUsage()
        Specified by:
        getUsage in interface org.flywaydb.core.extensibility.PluginMetadata