Interface EntryAdapter<T>
- Type Parameters:
T
- The type this Service adapts Entry to.
public interface EntryAdapter<T>
Interface for an Entry Adapter Service.
-
Method Summary
Modifier and TypeMethodDescriptionadapt
(Container root, OverlayContainer rootOverlay, ArtifactEntry artifactEntry, Entry entryToAdapt) Adapt from the Adaptable 'entryToAdapt' to type T
-
Method Details
-
adapt
T adapt(Container root, OverlayContainer rootOverlay, ArtifactEntry artifactEntry, Entry entryToAdapt) throws UnableToAdaptException Adapt from the Adaptable 'entryToAdapt' to type TNote that artifact layer paths may not be equivalent to adaptable paths.
Use the passed 'artifactEntry' to know what the artifact layer path is for the entryToAdaptThis allows the Adaptable Layer to have a different concept of 'isRoot' hierarchy than the artifact.
- Parameters:
root
- the Container that returns isRoot=true for entryToAdapt.rootOverlay
- the artifact layer entry that holds the data underpinning this adaptable.artifactEntry
- the artifact entry corresponding to the entryToAdaptentryToAdapt
- the adaptable entry to be adapted.- Returns:
- Throws:
UnableToAdaptException
-