public class FileDeploymentPackage extends AbstractDeploymentPackage
DeploymentPackage that is persisted on disk.EMPTY_PACKAGEEVENT_DEPLOYMENTPACKAGE_CURRENTVERSION, EVENT_DEPLOYMENTPACKAGE_NAME, EVENT_DEPLOYMENTPACKAGE_NEXTVERSION, EVENT_DEPLOYMENTPACKAGE_READABLENAMEBUNDLE_LOCATION_PREFIX, BUNDLE_SYMBOLICNAME, BUNDLE_VERSION, CODE_BAD_HEADER, CODE_BUNDLE_NAME_ERROR, CODE_BUNDLE_SHARING_VIOLATION, CODE_CANCELLED, CODE_COMMIT_ERROR, CODE_FOREIGN_CUSTOMIZER, CODE_MISSING_BUNDLE, CODE_MISSING_FIXPACK_TARGET, CODE_MISSING_HEADER, CODE_MISSING_RESOURCE, CODE_NOT_A_JAR, CODE_ORDER_ERROR, CODE_OTHER_ERROR, CODE_PROCESSOR_NOT_FOUND, CODE_RESOURCE_SHARING_VIOLATION, CODE_SIGNING_ERROR, CODE_TIMEOUT, DEPLOYMENTPACKAGE_CUSTOMIZER, DEPLOYMENTPACKAGE_FIXPACK, DEPLOYMENTPACKAGE_ICON, DEPLOYMENTPACKAGE_MISSING, DEPLOYMENTPACKAGE_NAME, DEPLOYMENTPACKAGE_SYMBOLICMAME, DEPLOYMENTPACKAGE_VERSION, EVENTPROPERTY_DEPLOYMENTPACKAGE_CURRENTVERSION, EVENTPROPERTY_DEPLOYMENTPACKAGE_NAME, EVENTPROPERTY_DEPLOYMENTPACKAGE_NEXTVERSION, EVENTPROPERTY_DEPLOYMENTPACKAGE_READABLENAME, EVENTPROPERTY_SUCCESSFUL, EVENTTOPIC_COMPLETE, EVENTTOPIC_INSTALL, EVENTTOPIC_UNINSTALL, RESOURCE_PROCESSOR, SERVICE_PIDACTIVATION_LAZY, BUNDLE_ACTIVATIONPOLICY, BUNDLE_ACTIVATOR, BUNDLE_CATEGORY, BUNDLE_CLASSPATH, BUNDLE_CONTACTADDRESS, BUNDLE_COPYRIGHT, BUNDLE_DESCRIPTION, BUNDLE_DOCURL, BUNDLE_LOCALIZATION, BUNDLE_LOCALIZATION_DEFAULT_BASENAME, BUNDLE_MANIFESTVERSION, BUNDLE_NAME, BUNDLE_NATIVECODE, BUNDLE_NATIVECODE_LANGUAGE, BUNDLE_NATIVECODE_OSNAME, BUNDLE_NATIVECODE_OSVERSION, BUNDLE_NATIVECODE_PROCESSOR, BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BUNDLE_SYMBOLICNAME_ATTRIBUTE, BUNDLE_UPDATELOCATION, BUNDLE_VENDOR, BUNDLE_VERSION_ATTRIBUTE, DYNAMICIMPORT_PACKAGE, EXCLUDE_DIRECTIVE, EXPORT_PACKAGE, EXPORT_SERVICE, EXTENSION_BOOTCLASSPATH, EXTENSION_DIRECTIVE, EXTENSION_FRAMEWORK, FRAGMENT_ATTACHMENT_ALWAYS, FRAGMENT_ATTACHMENT_DIRECTIVE, FRAGMENT_ATTACHMENT_NEVER, FRAGMENT_ATTACHMENT_RESOLVETIME, FRAGMENT_HOST, FRAMEWORK_BEGINNING_STARTLEVEL, FRAMEWORK_BOOTDELEGATION, FRAMEWORK_BUNDLE_PARENT, FRAMEWORK_BUNDLE_PARENT_APP, FRAMEWORK_BUNDLE_PARENT_BOOT, FRAMEWORK_BUNDLE_PARENT_EXT, FRAMEWORK_BUNDLE_PARENT_FRAMEWORK, FRAMEWORK_EXECPERMISSION, FRAMEWORK_EXECUTIONENVIRONMENT, FRAMEWORK_LANGUAGE, FRAMEWORK_LIBRARY_EXTENSIONS, FRAMEWORK_OS_NAME, FRAMEWORK_OS_VERSION, FRAMEWORK_PROCESSOR, FRAMEWORK_SECURITY, FRAMEWORK_SECURITY_OSGI, FRAMEWORK_STORAGE, FRAMEWORK_STORAGE_CLEAN, FRAMEWORK_STORAGE_CLEAN_ONFIRSTINIT, FRAMEWORK_SYSTEMPACKAGES, FRAMEWORK_SYSTEMPACKAGES_EXTRA, FRAMEWORK_TRUST_REPOSITORIES, FRAMEWORK_VENDOR, FRAMEWORK_VERSION, FRAMEWORK_WINDOWSYSTEM, IMPORT_PACKAGE, IMPORT_SERVICE, INCLUDE_DIRECTIVE, MANDATORY_DIRECTIVE, OBJECTCLASS, PACKAGE_SPECIFICATION_VERSION, REQUIRE_BUNDLE, RESOLUTION_DIRECTIVE, RESOLUTION_MANDATORY, RESOLUTION_OPTIONAL, SELECTION_FILTER_ATTRIBUTE, SERVICE_DESCRIPTION, SERVICE_ID, SERVICE_RANKING, SERVICE_VENDOR, SINGLETON_DIRECTIVE, SUPPORTS_BOOTCLASSPATH_EXTENSION, SUPPORTS_FRAMEWORK_EXTENSION, SUPPORTS_FRAMEWORK_FRAGMENT, SUPPORTS_FRAMEWORK_REQUIREBUNDLE, SYSTEM_BUNDLE_LOCATION, SYSTEM_BUNDLE_SYMBOLICNAME, USES_DIRECTIVE, VERSION_ATTRIBUTE, VISIBILITY_DIRECTIVE, VISIBILITY_PRIVATE, VISIBILITY_REEXPORT| Constructor and Description |
|---|
FileDeploymentPackage(File index,
File packageDir,
org.osgi.framework.BundleContext bundleContext,
DeploymentAdminImpl deploymentAdmin)
Creates a new instance of a deployment package stored on disk.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBundleStream(String symbolicName)
Determines the data stream of a bundle resource based on the bundle
symbolic name
|
InputStream |
getCurrentEntryStream()
Determines the data stream to the current entry of this deployment
package, use this together with the
getNextEntry method. |
AbstractInfo |
getNextEntry()
Determines the next resource entry in this deployment package based on
the order in which the resources appeared when the package was originally
received.
|
BundleInfoImpl[] |
getOrderedBundleInfos()
Determines the bundles of this deployment package in the order in which
they were originally received.
|
ResourceInfoImpl[] |
getOrderedResourceInfos()
Determines the resources of this deployment package in the order in which
they were originally received.
|
getAbstractInfoByPath, getBundle, getBundleInfoByName, getBundleInfoByPath, getBundleInfoImpls, getBundleInfos, getDisplayName, getHeader, getIcon, getName, getResourceHeader, getResourceInfoByPath, getResourceInfos, getResourceProcessor, getResources, getVersion, getVersionRange, isFixPackage, isMetaInfFile, isNew, isStale, setStale, uninstall, uninstallForcedpublic FileDeploymentPackage(File index, File packageDir, org.osgi.framework.BundleContext bundleContext, DeploymentAdminImpl deploymentAdmin) throws org.osgi.service.deploymentadmin.DeploymentException, IOException
index - Reference to the index file that contains the order in which all the resources of this deployment package were receivedpackageDir - Reference to the directory in which the index and package contents are stored.bundleContext - The bundle contextorg.osgi.service.deploymentadmin.DeploymentException - Thrown if the disk contents do not resemble a valid deployment package.IOException - Thrown if there was a problem reading the resources from disk.public InputStream getBundleStream(String symbolicName) throws IOException
AbstractDeploymentPackagegetBundleStream in class AbstractDeploymentPackagesymbolicName - Bundle symbolic nameIOException - If the bundle can not be properly offered as an
inputstreampublic InputStream getCurrentEntryStream()
AbstractDeploymentPackagegetNextEntry method.getCurrentEntryStream in class AbstractDeploymentPackagepublic AbstractInfo getNextEntry() throws IOException
AbstractDeploymentPackagegetNextEntry in class AbstractDeploymentPackageAbstractInfo describing the next resource entry (as
determined by the order in which the deployment package was
received originally) or null if there is no next entryIOException - if the next entry can not be properly determinedpublic BundleInfoImpl[] getOrderedBundleInfos()
AbstractDeploymentPackagegetOrderedBundleInfos in class AbstractDeploymentPackageBundleInfoImpl objects of the
bundles in this deployment package, ordered in the way they
appeared when the deployment package was first received.public ResourceInfoImpl[] getOrderedResourceInfos()
AbstractDeploymentPackagegetOrderedResourceInfos in class AbstractDeploymentPackageResourceInfoImpl objects of all
processed resources in this deployment package, ordered in the
way they appeared when the deployment package was first receivedCopyright © 2006–2016 The Apache Software Foundation. All rights reserved.