public class WarContainerResolver extends AArchiveBundleContainerResolver
ALL_ZIP_ENTRIES
SYS_PROP_CONTAINER_ROOT_DIR
Constructor and Description |
---|
WarContainerResolver(IClassSpaceBuilder classSpaceBuilder,
org.pfsw.tools.cda.base.model.container.BundleContainerSpecification parentContainerSpec) |
Modifier and Type | Method and Description |
---|---|
protected void |
addContainerForWebInfClassesFolder() |
protected void |
addContainersForJarFiles() |
protected void |
addContainersFromWarFile() |
protected org.pfsw.file.IZipEntryFilter |
getBundleExtractFilter()
Returns the filter that specifies which files to extract from the bundle
into a temporary folder.
|
protected org.pfsw.tools.cda.base.model.container.ContainerType |
getContainerType(java.io.File file)
Returns the type of this container.
|
protected java.util.Set<java.lang.String> |
getExtraContainerDirNames()
Returns a set of relative directory path names for which separate containers
will be registered.
|
protected boolean |
isAcceptable(java.lang.String webInfLibFolder,
java.io.File jarFile)
Returns whether or not the given jarFile is acceptable as separate container.
|
boolean |
resolveContainers(org.pfsw.tools.cda.base.model.workset.ClasspathPartDefinition partDefinition,
java.io.File warFile)
This will be called for each WAR file that has been defined by the
classpath entry.
|
extractToTempFolder, getBundleContainerSpec, getTempPath, initBundle, processContainedContainerFile, setBundleContainerSpec
createClassContainer, determineContainerFullName, determineContainerQualifiedName, determineRelativeName, getParentContainerSpec, hasParentContainerSpec, resolveContainer
addContainerToClassSpace, appContext, asAbsoluteFile, coll, fileUtil, findOrCreateContainer, getClassSpaceBuilder, getDefinitionFrom, getLogger, getWorkset, setClassSpaceBuilder, str
public WarContainerResolver(IClassSpaceBuilder classSpaceBuilder, org.pfsw.tools.cda.base.model.container.BundleContainerSpecification parentContainerSpec)
public boolean resolveContainers(org.pfsw.tools.cda.base.model.workset.ClasspathPartDefinition partDefinition, java.io.File warFile)
partDefinition
- The classpath definition that refers to the container(s) (may be null).warFile
- An explicit file that must be resolved (may be null).protected void addContainersFromWarFile()
protected void addContainerForWebInfClassesFolder()
protected void addContainersForJarFiles()
protected boolean isAcceptable(java.lang.String webInfLibFolder, java.io.File jarFile)
Example for acceptable JAR: "WEB-INF/lib/sample.jar"
Example for acceptable JAR: "some/folder/sample.jar"
Example for NOT acceptable JAR: "WEB-INF/lib/plugin/sample.jar"
protected org.pfsw.file.IZipEntryFilter getBundleExtractFilter()
AArchiveBundleContainerResolver
getBundleExtractFilter
in class AArchiveBundleContainerResolver
protected java.util.Set<java.lang.String> getExtraContainerDirNames()
AArchiveBundleContainerResolver
getExtraContainerDirNames
in class AArchiveBundleContainerResolver
protected org.pfsw.tools.cda.base.model.container.ContainerType getContainerType(java.io.File file)
AEmbeddableContainerResolver
getContainerType
in class AEmbeddableContainerResolver