Class DefaultLaunchScript

  • All Implemented Interfaces:
    LaunchScript

    public class DefaultLaunchScript
    extends java.lang.Object
    implements LaunchScript
    Default implementation of LaunchScript. Provides the default Spring Boot launch script or can load a specific script File. Also support mustache style template expansion of the form {{name:default}}.
    Since:
    1.3.0
    Author:
    Phillip Webb
    • Method Summary

      Modifier and Type Method Description
      byte[] toByteArray()
      The content of the launch script as a byte array.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultLaunchScript

        public DefaultLaunchScript​(java.io.File file,
                                   java.util.Map<?,​?> properties)
                            throws java.io.IOException
        Create a new DefaultLaunchScript instance.
        Parameters:
        file - the source script file or null to use the default
        properties - an optional set of script properties used for variable expansion
        Throws:
        java.io.IOException - if the script cannot be loaded
    • Method Detail

      • toByteArray

        public byte[] toByteArray()
        Description copied from interface: LaunchScript
        The content of the launch script as a byte array.
        Specified by:
        toByteArray in interface LaunchScript
        Returns:
        the script bytes