Interface Layers
- All Known Implementing Classes:
CustomLayers
,StandardLayers
Interface to provide information about layers to the
Repackager
.- Since:
- 2.3.0
- Author:
- Madhura Bhave, Phillip Webb
- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the layer that contains the given resource name.Return the layer that contains the given library.iterator()
Return the jar layers in the order that they should be added (starting with the least frequently changed layer).stream()
Return a stream of the jar layers in the order that they should be added (starting with the least frequently changed layer).Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
IMPLICIT
The default layer resolver.
-
-
Method Details
-
iterator
Return the jar layers in the order that they should be added (starting with the least frequently changed layer). -
stream
Return a stream of the jar layers in the order that they should be added (starting with the least frequently changed layer).- Returns:
- the layers stream
-
getLayer
Return the layer that contains the given resource name.- Parameters:
applicationResource
- the name of an application resource (for example a.class
file).- Returns:
- the layer that contains the resource (must never be
null
)
-
getLayer
Return the layer that contains the given library.- Parameters:
library
- the library to consider- Returns:
- the layer that contains the resource (must never be
null
)
-