Class ScriptTemplatesConfig

  • All Implemented Interfaces:

    
    public final class ScriptTemplatesConfig
    
                        

    Settings-group for the start- and java-script-templates used during server pack generation: the per-type template-maps stored under prefixed property-keys, their defaults inside the server_files-directory, and the deprecated list-based template-handling. Extracted from ApiProperties (refactor Phase 1b); ApiProperties remains the facade through which consumers access these values.

    • Method Detail

      • getScriptTemplates

         final TreeSet<File> getScriptTemplates()

        The start-script templates generation will use. Sorted, so generated packs are reproducible.

        Reads the equally-deprecated defaultScriptTemplates on purpose: both belong to the pre-6.0.0 flat-list representation, and this accessor exists to keep answering in that representation for callers who have not moved to startScriptTemplates yet. Delegating to the replacement instead would change what it returns, which is the one thing a deprecated facade must not do.

      • setScriptTemplates

         final Unit setScriptTemplates(TreeSet<File> value)

        The start-script templates generation will use. Sorted, so generated packs are reproducible.

        Reads the equally-deprecated defaultScriptTemplates on purpose: both belong to the pre-6.0.0 flat-list representation, and this accessor exists to keep answering in that representation for callers who have not moved to startScriptTemplates yet. Delegating to the replacement instead would change what it returns, which is the one thing a deprecated facade must not do.