T
- The type this Service adapts Entry to.public interface EntryAdapter<T>
Modifier and Type | Method and Description |
---|---|
T |
adapt(Container root,
OverlayContainer rootOverlay,
ArtifactEntry artifactEntry,
Entry entryToAdapt)
Adapt from the Adaptable 'entryToAdapt' to type T
|
T adapt(Container root, OverlayContainer rootOverlay, ArtifactEntry artifactEntry, Entry entryToAdapt) throws UnableToAdaptException
Note 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 entryToAdapt
This allows the Adaptable Layer to have a different concept of 'isRoot' hierarchy than the artifact.
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.UnableToAdaptException