Interface EntryAdapter<T>

  • Type Parameters:
    T - The type this Service adapts Entry to.

    public interface EntryAdapter<T>
    Interface for an Entry Adapter Service.
    • Method Detail

      • adapt

        T adapt​(Container root,
                OverlayContainer rootOverlay,
                ArtifactEntry artifactEntry,
                Entry entryToAdapt)
         throws UnableToAdaptException
        Adapt from the Adaptable 'entryToAdapt' to type T

        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.

        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 entryToAdapt
        entryToAdapt - the adaptable entry to be adapted.
        Returns:
        Throws:
        UnableToAdaptException