public interface DeploymentSession
When a deployment package is installed the target package, when uninstalled the source package is an empty deployment package. The empty deployment package is a virtual entity it doesn't appear for the outside world. It is only visible on the DeploymentSession interface used by Resource Processors. Although the empty package is only visible for Resource Processors it has the following characteristics:
DeploymentPackage.getBundle(String))DeploymentPackage.getResources())DeploymentPackage-SymbolicName andDeploymentPackage-VersionDeploymentPackage.getHeader(String))DeploymentPackage.getResourceHeader(String, String))DeploymentPackage.uninstall() throws
 IllegalStateExceptionDeploymentPackage.uninstallForced() throws
 IllegalStateException| Modifier and Type | Method and Description | 
|---|---|
java.io.File | 
getDataFile(Bundle bundle)
Returns the private data area of the specified bundle. 
 | 
DeploymentPackage | 
getSourceDeploymentPackage()
If the deployment action is an install or an update, this call returns
 the  
DeploymentPackage instance that corresponds to the deployment
 package being streamed in for this session. | 
DeploymentPackage | 
getTargetDeploymentPackage()
If the deployment action is an update or an uninstall, this call returns
 the  
DeploymentPackage instance for the installed deployment
 package. | 
DeploymentPackage getTargetDeploymentPackage()
DeploymentPackage instance for the installed deployment
 package. If the deployment action is an install, this call returns the
 empty deployment package (see DeploymentPackage).DeploymentPackageDeploymentPackage getSourceDeploymentPackage()
DeploymentPackage instance that corresponds to the deployment
 package being streamed in for this session. If the deployment action is
 an uninstall, this call returns the empty deployment package (see
 DeploymentPackage).DeploymentPackagejava.io.File getDataFile(Bundle bundle)
The bundle and the caller Resource Processor have to be in the same Deployment Package.
bundle - the bundle the private area belongs tojava.lang.SecurityException - if the caller doesn't have the appropriate
         DeploymentCustomizerPermission("<filter>",
         "privatearea") permission.DeploymentPackage, 
DeploymentCustomizerPermissionCopyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0