org.ops4j.pax.runner.platform
Interface PlatformContext

All Known Implementing Classes:
PlatformContextImpl

public interface PlatformContext

PlatformImpl start context. Contains startup related objects. Passed arround to platform builder for thread safety.

Since:
August 20, 2007
Author:
Alin Dreghiciu

Method Summary
 java.util.List<LocalBundle> getBundles()
          Returns a list of bundles to be installed.
 Configuration getConfiguration()
          Returns the configuration.
 java.util.Properties getProperties()
          Returns platform properties.
 java.lang.String getSystemPackages()
          Returns the list of system packages in use depending on java version.
 java.io.File getWorkingDirectory()
          Returns the working directory.
 void setBundles(java.util.List<LocalBundle> platformBundles)
          Sets the client bundles to be installed.
 void setConfiguration(Configuration configuration)
          Sets the configuration.
 void setProperties(java.util.Properties properties)
          Sets the platform properties.
 void setSystemPackages(java.lang.String packageList)
          Sets the system packages tht will be exported by the framework.
 void setWorkingDirectory(java.io.File workingDirectory)
          Sets the working directory.
 

Method Detail

getBundles

java.util.List<LocalBundle> getBundles()
Returns a list of bundles to be installed.

Returns:
a list of local bundles

setBundles

void setBundles(java.util.List<LocalBundle> platformBundles)
Sets the client bundles to be installed.

Parameters:
platformBundles - a list of Local Bundles

getWorkingDirectory

java.io.File getWorkingDirectory()
Returns the working directory.

Returns:
a working directory

setWorkingDirectory

void setWorkingDirectory(java.io.File workingDirectory)
Sets the working directory.

Parameters:
workingDirectory - a file directory

getProperties

java.util.Properties getProperties()
Returns platform properties.

Returns:
platform properties

setProperties

void setProperties(java.util.Properties properties)
Sets the platform properties.

Parameters:
properties - a properties file. Can be null.

getSystemPackages

java.lang.String getSystemPackages()
Returns the list of system packages in use depending on java version.

Returns:
a list of system packages

setSystemPackages

void setSystemPackages(java.lang.String packageList)
Sets the system packages tht will be exported by the framework. System packages must be a comma separated list of system packages.

Parameters:
packageList - comma separated list of system packages

getConfiguration

Configuration getConfiguration()
Returns the configuration.

Returns:
a configuration

setConfiguration

void setConfiguration(Configuration configuration)
Sets the configuration.

Parameters:
configuration - a configuration


Copyright © 2008. All Rights Reserved.