org.ops4j.pax.runner.platform.internal
Class PlatformContextImpl

java.lang.Object
  extended by org.ops4j.pax.runner.platform.internal.PlatformContextImpl
All Implemented Interfaces:
PlatformContext

public class PlatformContextImpl
extends java.lang.Object
implements PlatformContext


Constructor Summary
PlatformContextImpl()
           
 
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> bundles)
          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 systemPackages)
          Sets the system packages tht will be exported by the framework.
 void setWorkingDirectory(java.io.File workingDirectory)
          Sets the working directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformContextImpl

public PlatformContextImpl()
Method Detail

getBundles

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

Specified by:
getBundles in interface PlatformContext
Returns:
a list of local bundles

setBundles

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

Specified by:
setBundles in interface PlatformContext
Parameters:
bundles - a list of Local Bundles

getWorkingDirectory

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

Specified by:
getWorkingDirectory in interface PlatformContext
Returns:
a working directory

setWorkingDirectory

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

Specified by:
setWorkingDirectory in interface PlatformContext
Parameters:
workingDirectory - a file directory

getProperties

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

Specified by:
getProperties in interface PlatformContext
Returns:
platform properties

setProperties

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

Specified by:
setProperties in interface PlatformContext
Parameters:
properties - a properties file. Can be null.

getSystemPackages

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

Specified by:
getSystemPackages in interface PlatformContext
Returns:
a list of system packages

setSystemPackages

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

Specified by:
setSystemPackages in interface PlatformContext
Parameters:
systemPackages - comma separated list of system packages

getConfiguration

public Configuration getConfiguration()
Returns the configuration.

Specified by:
getConfiguration in interface PlatformContext
Returns:
a configuration

setConfiguration

public void setConfiguration(Configuration configuration)
Sets the configuration.

Specified by:
setConfiguration in interface PlatformContext
Parameters:
configuration - a configuration

getExecutionEnvironment

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

Specified by:
getExecutionEnvironment in interface PlatformContext
Returns:
comma separated list of framewok supported execution environments.

setExecutionEnvironment

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

Specified by:
setExecutionEnvironment in interface PlatformContext
Parameters:
executionEnvironment - comma separated list of supported execution environments

getFilePathStrategy

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

Specified by:
getFilePathStrategy in interface PlatformContext
Returns:
file path strategy

setFilePathStrategy

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

Specified by:
setFilePathStrategy in interface PlatformContext
Parameters:
filePathStrategy - file path strategy


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