接口 Layers

所有超级接口:
Iterable<Layer>
所有已知实现类:
CustomLayers, StandardLayers

public interface Layers extends Iterable<Layer>
Interface to provide information about layers to the Repackager.
从以下版本开始:
2.3.0
作者:
Madhura Bhave, Phillip Webb
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Layers
    The default layer resolver.
  • 方法概要

    修饰符和类型
    方法
    说明
    getLayer(String applicationResource)
    Return the layer that contains the given resource name.
    getLayer(Library library)
    Return the layer that contains the given library.
    Return the jar layers in the order that they should be added (starting with the least frequently changed layer).
    Return a stream of the jar layers in the order that they should be added (starting with the least frequently changed layer).

    从接口继承的方法 java.lang.Iterable

    forEach, spliterator
  • 字段详细资料

    • IMPLICIT

      static final Layers IMPLICIT
      The default layer resolver.
  • 方法详细资料

    • iterator

      Iterator<Layer> iterator()
      Return the jar layers in the order that they should be added (starting with the least frequently changed layer).
      指定者:
      iterator 在接口中 Iterable<Layer>
      返回:
      the layers iterator
    • stream

      Stream<Layer> stream()
      Return a stream of the jar layers in the order that they should be added (starting with the least frequently changed layer).
      返回:
      the layers stream
    • getLayer

      Layer getLayer(String applicationResource)
      Return the layer that contains the given resource name.
      参数:
      applicationResource - the name of an application resource (for example a .class file).
      返回:
      the layer that contains the resource (must never be null)
    • getLayer

      Layer getLayer(Library library)
      Return the layer that contains the given library.
      参数:
      library - the library to consider
      返回:
      the layer that contains the resource (must never be null)