Class StandardLayers

java.lang.Object
org.springframework.boot.loader.tools.StandardLayers
All Implemented Interfaces:
Iterable<Layer>, Layers

public abstract class StandardLayers extends Object implements Layers
Base class for the standard set of Layers. Defines the following layers:
  1. "dependencies" - For non snapshot dependencies
  2. "spring-boot-loader" - For classes from spring-boot-loader used to launch a fat jar
  3. "snapshot-dependencies" - For snapshot dependencies
  4. "application" - For application classes and resources
Since:
2.3.0
Author:
Madhura Bhave, Phillip Webb
  • Field Details

    • DEPENDENCIES

      public static final Layer DEPENDENCIES
      The dependencies layer.
    • SPRING_BOOT_LOADER

      public static final Layer SPRING_BOOT_LOADER
      The spring boot loader layer.
    • SNAPSHOT_DEPENDENCIES

      public static final Layer SNAPSHOT_DEPENDENCIES
      The snapshot dependencies layer.
    • APPLICATION

      public static final Layer APPLICATION
      The application layer.
  • Constructor Details

    • StandardLayers

      public StandardLayers()
  • Method Details

    • iterator

      public Iterator<Layer> iterator()
      Description copied from interface: Layers
      Return the jar layers in the order that they should be added (starting with the least frequently changed layer).
      Specified by:
      iterator in interface Iterable<Layer>
      Specified by:
      iterator in interface Layers
      Returns:
      the layers iterator
    • stream

      public Stream<Layer> stream()
      Description copied from interface: Layers
      Return a stream of the jar layers in the order that they should be added (starting with the least frequently changed layer).
      Specified by:
      stream in interface Layers
      Returns:
      the layers stream