com.ibm.wsspi.adaptable.module.adapters

Interface EntryAdapter<T>

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

  1. public interface EntryAdapter<T>
Interface for an Entry Adapter Service.

Method Summary

Modifier and Type Method and Description
  1. T
adapt(Container root,OverlayContainer rootOverlay,ArtifactEntry artifactEntry,Entry entryToAdapt)
Adapt from the Adaptable 'entryToAdapt' to type T

Method Detail

adapt

  1. T adapt(Container root,
  2. OverlayContainer rootOverlay,
  3. ArtifactEntry artifactEntry,
  4. Entry entryToAdapt)
  5. 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: