|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.deploymentadmin.DeploymentAdminImpl
public class DeploymentAdminImpl
Field Summary | |
---|---|
static String |
PACKAGE_DIR
|
static String |
PACKAGECONTENTS_DIR
|
static String |
PACKAGEINDEX_FILE
|
static String |
TEMP_DIR
|
static String |
TEMP_POSTFIX
|
static String |
TEMP_PREFIX
|
Constructor Summary | |
---|---|
DeploymentAdminImpl()
Create new instance of this DeploymentAdmin . |
Method Summary | |
---|---|
boolean |
cancel()
This method cancels the currently active deployment session. |
BundleContext |
getBundleContext()
Returns reference to this bundle's BundleContext |
DeploymentPackage |
getDeploymentPackage(Bundle bundle)
Gives back the installed DeploymentPackage that owns the bundle. |
DeploymentPackage |
getDeploymentPackage(String symbName)
Gets the currently installed DeploymentPackage instance which has the given
symbolic name. |
LogService |
getLog()
Returns reference to the current logging service defined in the framework. |
PackageAdmin |
getPackageAdmin()
Returns reference to the current package admin defined in the framework. |
DeploymentPackage |
installDeploymentPackage(InputStream input)
Installs a Deployment Package from an input stream. |
DeploymentPackage[] |
listDeploymentPackages()
Lists the Deployment Packages currently installed on the platform. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PACKAGE_DIR
public static final String TEMP_DIR
public static final String PACKAGECONTENTS_DIR
public static final String PACKAGEINDEX_FILE
public static final String TEMP_PREFIX
public static final String TEMP_POSTFIX
Constructor Detail |
---|
public DeploymentAdminImpl()
DeploymentAdmin
.
Method Detail |
---|
public void start() throws DeploymentException
DeploymentException
public void stop()
public boolean cancel()
DeploymentAdmin
cancel
in interface DeploymentAdmin
DeploymentAdminPermission
public DeploymentPackage getDeploymentPackage(String symbName)
DeploymentAdmin
DeploymentPackage
instance which has the given
symbolic name.
During an installation of an existing package (update) or during an uninstallation,
the target Deployment Package must remain the return value until the installation
(uninstallation) process is completed, after which the source (or null
in case of uninstall) is the return value.
getDeploymentPackage
in interface DeploymentAdmin
symbName
- the symbolic name of the Deployment Package to be retrieved. It mustn't be
null
.
DeploymentPackage
for the given symbolic name.
If there is no Deployment Package with that symbolic name currently installed,
null
is returned.DeploymentPackage
,
DeploymentAdminPermission
public DeploymentPackage getDeploymentPackage(Bundle bundle)
DeploymentAdmin
DeploymentPackage
that owns the bundle. Deployment Packages own their
bundles by their Bundle Symbolic Name. It means that if a bundle belongs to an installed
Deployment Packages (and at most to one) the Deployment Admin assigns the bundle to its owner
Deployment Package by the Symbolic Name of the bundle.
getDeploymentPackage
in interface DeploymentAdmin
bundle
- the bundle whose owner is queried
null
if the bundle doesn't
belong to any Deployment Packages (standalone bundles)DeploymentPackage
,
DeploymentAdminPermission
public DeploymentPackage installDeploymentPackage(InputStream input) throws DeploymentException
DeploymentAdmin
installDeploymentPackage
in interface DeploymentAdmin
input
- the input stream the Deployment Package can be read from. It mustn't be null
.
null
.
DeploymentException
- if the installation was not successful. For detailed error code description
see DeploymentException
.DeploymentAdminPermission
,
DeploymentPackage
,
DeploymentPackage
public DeploymentPackage[] listDeploymentPackages()
DeploymentAdmin
DeploymentAdminPermission
("<filter>", "list") is
needed for this operation to the effect that only those packages are listed in
the array to which the caller has appropriate DeploymentAdminPermission. It has
the consequence that the method never throws SecurityException only doesn't
put certain Deployment Packages into the array.
During an installation of an existing package (update) or during an uninstallation,
the target must remain in this list until the installation (uninstallation) process
is completed, after which the source (or null
in case of uninstall)
replaces the target.
listDeploymentPackages
in interface DeploymentAdmin
DeploymentPackage
objects representing all the
installed Deployment Packages. The return value cannot be null
.
In case of missing permissions it may give back an empty array.DeploymentPackage
,
DeploymentAdminPermission
public BundleContext getBundleContext()
BundleContext
BundleContext
public LogService getLog()
LogService
.public PackageAdmin getPackageAdmin()
PackageAdmin
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |