public class EarContainerResolver extends AArchiveBundleContainerResolver
ALL_ZIP_ENTRIES
SYS_PROP_CONTAINER_ROOT_DIR
Constructor and Description |
---|
EarContainerResolver(IClassSpaceBuilder classSpaceBuilder,
BundleContainerSpecification parentContainerSpec) |
Modifier and Type | Method and Description |
---|---|
protected void |
addContainerForAppInfClassesFolder() |
protected org.pfsw.file.IZipEntryFilter |
getBundleExtractFilter()
Returns the filter that specifies which files to extract from the bundle
into a temporary folder.
|
protected 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 |
hasAppInfClassesFolder(java.util.List<java.lang.String> containerPaths)
Returns true if the given list of paths contains "APP-INF/classes".
|
protected void |
removeFolder(java.util.List<java.lang.String> containerPaths,
java.lang.String folderName) |
protected boolean |
resolveContainedArchives(java.nio.file.Path tempFolder,
java.util.List<java.lang.String> containerPaths,
java.lang.String fileExtension)
This iterates over all files in the given containerPaths and processes all
contained JARs or RARs or WARs according on the given fileExtension..
|
boolean |
resolveContainers(ClasspathPartDefinition partDefinition,
java.io.File earFile)
Analyzes the given EAR file and adds all contained JARs, WARs and RARs as
separate containers to the underlying classSpaceBuilder.
|
protected java.util.List<java.lang.String> |
sortContainerPaths(java.util.List<java.lang.String> containerPaths) |
addContainerForClassesFolder, addContainersForJarFiles, collectArchivesFrom, collectDirNamesFrom, extractToTempFolder, getBundleContainerSpec, getManifestSettings, getTempPath, getValueOrDefault, initBundle, isAcceptable, processContainedContainerFile, setBundleContainerSpec
createClassContainer, determineContainerFullName, determineContainerQualifiedName, determineRelativeName, getParentContainerSpec, hasParentContainerSpec, resolveContainer
addContainerToClassSpace, appContext, asAbsoluteFile, coll, fileUtil, findOrCreateContainer, getClassSpaceBuilder, getDefinitionFrom, getLogger, getWorkset, setClassSpaceBuilder, str
public EarContainerResolver(IClassSpaceBuilder classSpaceBuilder, BundleContainerSpecification parentContainerSpec)
public boolean resolveContainers(ClasspathPartDefinition partDefinition, java.io.File earFile)
partDefinition
- The classpath definition that refers to the container(s) (may be null).earFile
- An explicit file that must be resolved (may be null).protected boolean resolveContainedArchives(java.nio.file.Path tempFolder, java.util.List<java.lang.String> containerPaths, java.lang.String fileExtension)
protected void addContainerForAppInfClassesFolder()
protected boolean hasAppInfClassesFolder(java.util.List<java.lang.String> containerPaths)
protected void removeFolder(java.util.List<java.lang.String> containerPaths, java.lang.String folderName)
protected java.util.List<java.lang.String> sortContainerPaths(java.util.List<java.lang.String> containerPaths)
protected java.util.Set<java.lang.String> getExtraContainerDirNames()
AArchiveBundleContainerResolver
getExtraContainerDirNames
in class AArchiveBundleContainerResolver
protected org.pfsw.file.IZipEntryFilter getBundleExtractFilter()
AArchiveBundleContainerResolver
getBundleExtractFilter
in class AArchiveBundleContainerResolver
protected ContainerType getContainerType(java.io.File file)
AEmbeddableContainerResolver
getContainerType
in class AEmbeddableContainerResolver