com.ibm.wsspi.adaptable.module.adapters
Interface EntryAdapter<T>
Type Parameters:
T
- The type this Service adapts Entry to. - public interface EntryAdapter<T>
Method Summary
Modifier and Type | Method and Description |
---|---|
adapt(Container root,OverlayContainer rootOverlay,ArtifactEntry artifactEntry,Entry entryToAdapt)
Adapt from the Adaptable 'entryToAdapt' to type T
|
Method Detail
adapt
- T adapt(Container root,
- OverlayContainer rootOverlay,
- ArtifactEntry artifactEntry,
- Entry entryToAdapt)
- throws UnableToAdaptException
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:
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.