public interface ArtifactContainerFactoryContributor
Implementations will register services meeting this interface with the handlesType service attribute set.
Container
.Entry
. If absent, Helper will be invoked to convert Entry
without filtering by file extension.
Modifier and Type | Method and Description |
---|---|
ArtifactContainer |
createContainer(java.io.File workAreaCacheDir,
ArtifactContainer parent,
ArtifactEntry entry,
java.lang.Object o)
Create a container for the passed Object.
|
ArtifactContainer |
createContainer(java.io.File workAreaCacheDir,
java.lang.Object o)
Create a container for the passed Object.
|
ArtifactContainer createContainer(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.
The container returned MUST return true for ArtifactContainer.isRoot()
If a scenario requires non-root Containers to be returned, this will require a new story.
workAreaCacheDir
- the directory to use as a performance cache for this Container.p
- the object to underpin this Container instance.ArtifactContainer createContainer(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.
The container returned MUST return true for ArtifactContainer.isRoot()
If a scenario requires non-root Containers to be returned, this will require a new story.
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.