public class BundleContainerSpecification extends ExtractedContainerSpecification
TEMP_FOLEDR_PREFIX
Constructor and Description |
---|
BundleContainerSpecification(BundleContainerSpecification parentSpec,
java.lang.String containerName,
java.lang.String relativeName,
java.io.File zipFile,
java.io.File tempFolder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
determineRelativeName(java.io.File file)
Returns the relative path name of the given file related to the
temp folder where this bundle has been extracted to.
|
java.lang.String |
getClassesFolderName()
Returns the name of sub-folder in which class files of this container
can be found.
|
java.lang.String |
getClassesSubFolder() |
java.lang.String |
getDisplayName() |
java.util.Set<java.lang.String> |
getExtraContainerDirNames() |
IStringChecker |
getSubDirExcludeFilter()
Returns a filter for (relative) sub directory paths that should be
excluded from this container's class and resource files analysis.
|
java.io.File |
getTempFolder() |
java.lang.String |
getTempFolderName() |
boolean |
hasTempFolder() |
void |
release()
Since by definition the file represented by this specification is actually
a (zip) bundle, its physical representation is a temporary folder which
will now be (recursively) deleted.
|
void |
setClassesSubFolder(java.lang.String classesSubFolder) |
void |
setExtraContainerDirNames(java.util.Set<java.lang.String> extraContainerDirNames) |
getLogger, getParentBundleSpec, hasParentBundleSpec
close, fileUtil, getClasspathElement, getContainerNames, getContainerType, getFileInfo, getFullContainerName, getPhysicalName, getQualifiedContainerName, getSimpleContainerName, isArchive, isDirectory, isEmbedded, isMetaData, isPhysicalArchive, isPhysicalDirectory, isValid, open, openContainedFile, setClasspathElement, setContainerType, setFileRepresentation, str, toString
public BundleContainerSpecification(BundleContainerSpecification parentSpec, java.lang.String containerName, java.lang.String relativeName, java.io.File zipFile, java.io.File tempFolder)
public void release()
release
in interface org.pfsw.bif.lifecycle.IReleasable
release
in class ContainerSpecification
public java.lang.String determineRelativeName(java.io.File file)
public boolean hasTempFolder()
public java.lang.String getTempFolderName()
public java.io.File getTempFolder()
public java.lang.String getDisplayName()
getDisplayName
in class ContainerSpecification
public java.lang.String getClassesFolderName()
getClassesFolderName
in class ContainerSpecification
public IStringChecker getSubDirExcludeFilter()
ContainerSpecification
This default implementation returns an exclude filter that matches
no given directory path. That is, no sub directory will be excluded.
Subclasses must override this method in order to exclude one or more
sub directories.
getSubDirExcludeFilter
in class ContainerSpecification
public java.lang.String getClassesSubFolder()
public void setClassesSubFolder(java.lang.String classesSubFolder)
public java.util.Set<java.lang.String> getExtraContainerDirNames()
public void setExtraContainerDirNames(java.util.Set<java.lang.String> extraContainerDirNames)