org.apache.felix.deploymentadmin
Class DeploymentAdminImpl

java.lang.Object
  extended by org.apache.felix.deploymentadmin.DeploymentAdminImpl
All Implemented Interfaces:
DeploymentAdmin

public class DeploymentAdminImpl
extends Object
implements DeploymentAdmin


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()
           
 BundleContext getBundleContext()
          Returns reference to this bundle's BundleContext
 DeploymentPackage getDeploymentPackage(Bundle bundle)
           
 DeploymentPackage getDeploymentPackage(String symbName)
           
 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)
           
 DeploymentPackage[] listDeploymentPackages()
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_DIR

public static final String PACKAGE_DIR
See Also:
Constant Field Values

TEMP_DIR

public static final String TEMP_DIR
See Also:
Constant Field Values

PACKAGECONTENTS_DIR

public static final String PACKAGECONTENTS_DIR
See Also:
Constant Field Values

PACKAGEINDEX_FILE

public static final String PACKAGEINDEX_FILE
See Also:
Constant Field Values

TEMP_PREFIX

public static final String TEMP_PREFIX
See Also:
Constant Field Values

TEMP_POSTFIX

public static final String TEMP_POSTFIX
See Also:
Constant Field Values
Constructor Detail

DeploymentAdminImpl

public DeploymentAdminImpl()
Create new instance of this DeploymentAdmin.

Method Detail

start

public void start()
           throws DeploymentException
Throws:
DeploymentException

stop

public void stop()

cancel

public boolean cancel()
Specified by:
cancel in interface DeploymentAdmin

getDeploymentPackage

public DeploymentPackage getDeploymentPackage(String symbName)
Specified by:
getDeploymentPackage in interface DeploymentAdmin

getDeploymentPackage

public DeploymentPackage getDeploymentPackage(Bundle bundle)
Specified by:
getDeploymentPackage in interface DeploymentAdmin

installDeploymentPackage

public DeploymentPackage installDeploymentPackage(InputStream input)
                                           throws DeploymentException
Specified by:
installDeploymentPackage in interface DeploymentAdmin
Throws:
DeploymentException

listDeploymentPackages

public DeploymentPackage[] listDeploymentPackages()
Specified by:
listDeploymentPackages in interface DeploymentAdmin

getBundleContext

public BundleContext getBundleContext()
Returns reference to this bundle's BundleContext

Returns:
This bundle's BundleContext

getLog

public LogService getLog()
Returns reference to the current logging service defined in the framework.

Returns:
Currently active LogService.

getPackageAdmin

public PackageAdmin getPackageAdmin()
Returns reference to the current package admin defined in the framework.

Returns:
Currently active PackageAdmin.


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.