public interface ArtifactContainerFactory
Uses service based implementations to return appropriate Container abstraction for given Objects.
Have DS inject the service implementing this interface to your bundle, and use the getters to have the api build a container for a given Object.
Modifier and Type | Method and Description |
---|---|
ArtifactContainer |
getContainer(java.io.File workAreaCacheDir,
ArtifactContainer parent,
ArtifactEntry entry,
java.lang.Object o)
Obtain a container for the passed Object.
|
ArtifactContainer |
getContainer(java.io.File workAreaCacheDir,
java.lang.Object o)
Obtain a container for the passed Object.
|
ArtifactContainer getContainer(java.io.File workAreaCacheDir, java.lang.Object o)
This is a root-level scenario, where the Object is not considered enclosed by any other Container.
workAreaCacheDir
- the directory to use as a performance cache for this Container.o
- the object to underpin this Container instance.ArtifactContainer getContainer(java.io.File workAreaCacheDir, ArtifactContainer parent, ArtifactEntry entry, java.lang.Object o)
This is an enclosed scenario, where the Object is considered enclosed by the passed Container.
workAreaCacheDir
- the directory to use as a performance cache for this Container.parent
- the Container that o is considered to be part of.entry
- the Entry within parent that o is considered to represent.o
- the object to underpin this Container instance.