Class AbstractResourceScriptCommand

    • Constructor Detail

      • AbstractResourceScriptCommand

        public AbstractResourceScriptCommand​(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

      • readScript

        public String readScript()
        Returns:
        Filtered script.
      • 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.