public class OsgiBundleContainerResolver extends AArchiveBundleContainerResolver
ALL_ZIP_ENTRIES
SYS_PROP_CONTAINER_ROOT_DIR
Constructor and Description |
---|
OsgiBundleContainerResolver(IClassSpaceBuilder classSpaceBuilder,
BundleContainerSpecification parentContainerSpec) |
Modifier and Type | Method and Description |
---|---|
protected void |
addJarFiles(java.util.List<java.lang.String> jarFileNames) |
protected void |
addOsgiBundleClassesFolders() |
protected void |
addSubContainerDirNames(java.util.List<java.lang.String> dirNames) |
protected java.util.List<java.lang.String> |
extractBundleClasspath(org.pfsw.settings.Settings settings)
Returns the bundle classpath definition from the OSGi bundle's manifest file.
|
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 java.util.Set<java.lang.String> |
getSubContainerDirNames() |
boolean |
resolveContainers(ClasspathPartDefinition partDefinition,
java.io.File bundleFile)
Resolve all containers that are specified by the given classpath
part definition or file.
|
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 OsgiBundleContainerResolver(IClassSpaceBuilder classSpaceBuilder, BundleContainerSpecification parentContainerSpec)
public boolean resolveContainers(ClasspathPartDefinition partDefinition, java.io.File bundleFile)
IContainerResolver
Either partDefinition
or containerFile
must be provided.
partDefinition
- The classpath definition that refers to the container(s) (may be null).bundleFile
- An explicit file that must be resolved (may be null).protected java.util.List<java.lang.String> extractBundleClasspath(org.pfsw.settings.Settings settings)
protected void addOsgiBundleClassesFolders()
protected void addJarFiles(java.util.List<java.lang.String> jarFileNames)
protected void addSubContainerDirNames(java.util.List<java.lang.String> dirNames)
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
protected java.util.Set<java.lang.String> getSubContainerDirNames()