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<BundleReference> getBundles()
          Returns a list of bundles to be installed.
 Configuration getConfiguration()
          Returns the configuration.
 java.lang.String getExecutionEnvironment()
          Returns the execution environments.
 FilePathStrategy getFilePathStrategy()
          Returns the file path strategy in use.
 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<BundleReference> platformBundles)
          Sets the client bundles to be installed.
 void setConfiguration(Configuration configuration)
          Sets the configuration.
 void setExecutionEnvironment(java.lang.String executionEnvironment)
          Sets the execution environment.
 void setFilePathStrategy(FilePathStrategy filePathStrategy)
          Sets the file path strategy in use.
 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<BundleReference> getBundles()
Returns a list of bundles to be installed.

Returns:
a list of local bundles

setBundles

void setBundles(java.util.List<BundleReference> 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

setExecutionEnvironment

void setExecutionEnvironment(java.lang.String executionEnvironment)
Sets the execution environment.

Parameters:
executionEnvironment - comma separated list of supported execution environments

getExecutionEnvironment

java.lang.String getExecutionEnvironment()
Returns the execution environments.

Returns:
comma separated list of framewok supported execution environments.

setFilePathStrategy

void setFilePathStrategy(FilePathStrategy filePathStrategy)
Sets the file path strategy in use.

Parameters:
filePathStrategy - file path strategy

getFilePathStrategy

FilePathStrategy getFilePathStrategy()
Returns the file path strategy in use.

Returns:
file path strategy


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.