Class CustomLayers

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

public class CustomLayers extends Object implements Layers
Custom Layers implementation where layer content is selected by the user.
Since:
2.3.0
Author:
Madhura Bhave, Phillip Webb
  • Constructor Details

  • 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
    • getLayer

      public Layer getLayer(String resourceName)
      Description copied from interface: Layers
      Return the layer that contains the given resource name.
      Specified by:
      getLayer in interface Layers
      Parameters:
      resourceName - the name of an application resource (for example a .class file).
      Returns:
      the layer that contains the resource (must never be null)
    • getLayer

      public Layer getLayer(Library library)
      Description copied from interface: Layers
      Return the layer that contains the given library.
      Specified by:
      getLayer in interface Layers
      Parameters:
      library - the library to consider
      Returns:
      the layer that contains the resource (must never be null)