Class AbstractScriptCommand

    • Constructor Detail

      • AbstractScriptCommand

        public AbstractScriptCommand​(Configuration configuration,
                                     String resourcePath)
        Sets configuration containing all needed information for building configuration scripts.
        Parameters:
        configuration - Container configuration.
        resourcePath - Path to configuration script resources.
    • Method Detail

      • isApplicable

        public boolean isApplicable()
        Method used for checking if script command can be applied - if it has all needed parameters set.
        Specified by:
        isApplicable in interface ScriptCommand
        Returns:
        True if script command can be applied with existing parameters.
      • getScriptRelativePath

        protected abstract String getScriptRelativePath()
        Returns:
        Relative path to resource being read.
      • addConfigurationScriptProperties

        protected void addConfigurationScriptProperties​(Map<String,​String> propertiesMap)
        Add custom properties needed for configuration script filtering.
        Parameters:
        propertiesMap - Map of additional custom properties.
      • findResource

        protected Resource findResource​(String type)
        Parameters:
        type - Resource type.
        Returns:
        Resource of defined type.
      • getConfiguration

        protected Configuration getConfiguration()
        Returns:
        Container configuration.