Class AbstractScriptCommand

    • Constructor Detail

      • AbstractScriptCommand

        public AbstractScriptCommand​(Configuration configuration)
        Sets configuration containing all needed information for building configuration scripts.
        Parameters:
        configuration - Container configuration.
    • 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.
      • getConfiguration

        protected Configuration getConfiguration()
        Returns:
        Container configuration.
      • escapeDeployableName

        protected String escapeDeployableName​(String name)
        Removes all special characters from a deployable name, to make a "safe" identifier.
        Parameters:
        name - Deployable name.
        Returns:
        "Safe" version of the deployable name, where:
        • Empty or null names are rewritten as ROOT
        • Else, from yhe name, everything outside the base alphabet, numbers, - and _ are changed into _.