org.ops4j.pax.runner.platform.felix.internal
Class FelixPlatformBuilderF100T122

java.lang.Object
  extended by org.ops4j.pax.runner.platform.felix.internal.FelixPlatformBuilderF100T122
All Implemented Interfaces:
PlatformBuilder

public class FelixPlatformBuilderF100T122
extends java.lang.Object
implements PlatformBuilder

Platform builder for felix platform from version 1.0.0 till 1.2.2.

Since:
0.16.0, November 05, 2008
Author:
Alin Dreghiciu

Constructor Summary
FelixPlatformBuilderF100T122(org.osgi.framework.BundleContext bundleContext, java.lang.String version)
          Create a new felix platform builder.
 
Method Summary
 java.lang.String[] getArguments(PlatformContext context)
          Returns an array of platform specific startup arguments.
 java.io.InputStream getDefinition(Configuration configuration)
          Retuns an input stream out of the definition file to be used.
 java.lang.String getMainClassName()
          Returns the name of the main class of the platform, class that will be used to fire up the platform.
 java.lang.String getProviderName()
          Returns the name of the provider (e.g.
 java.lang.String getProviderVersion()
          Returns the version of the provider (e.g.
 java.lang.String getRequiredProfile(PlatformContext context)
          If the console option is set then it will return the tui profile otherwise will return null.
 java.lang.String[] getVMOptions(PlatformContext context)
          Returns an array of virtual machine options specific to platform as -D.
 void prepare(PlatformContext context)
          Creates a config.ini file under the working directory/felix directory.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FelixPlatformBuilderF100T122

public FelixPlatformBuilderF100T122(org.osgi.framework.BundleContext bundleContext,
                                    java.lang.String version)
Create a new felix platform builder.

Parameters:
bundleContext - a bundle context
version - supported version
Method Detail

prepare

public void prepare(PlatformContext context)
             throws PlatformException
Creates a config.ini file under the working directory/felix directory.

Specified by:
prepare in interface PlatformBuilder
Parameters:
context - context information
Throws:
PlatformException - if something goes wrong durring building the platform
See Also:
#prepare(org.ops4j.pax.runner.platform.PlatformContext)

getMainClassName

public java.lang.String getMainClassName()
Description copied from interface: PlatformBuilder
Returns the name of the main class of the platform, class that will be used to fire up the platform.

Specified by:
getMainClassName in interface PlatformBuilder
Returns:
main class name
See Also:
PlatformBuilder.getMainClassName()

getArguments

public java.lang.String[] getArguments(PlatformContext context)
Description copied from interface: PlatformBuilder
Returns an array of platform specific startup arguments. This are appended to the startup command.

Specified by:
getArguments in interface PlatformBuilder
Parameters:
context - context information
Returns:
an array of arguments
See Also:
#getArguments(org.ops4j.pax.runner.platform.PlatformContext)

getVMOptions

public java.lang.String[] getVMOptions(PlatformContext context)
Description copied from interface: PlatformBuilder
Returns an array of virtual machine options specific to platform as -D.

Specified by:
getVMOptions in interface PlatformBuilder
Parameters:
context - context information
Returns:
an array of system properties
See Also:
#getVMOptions(org.ops4j.pax.runner.platform.PlatformContext)

getDefinition

public java.io.InputStream getDefinition(Configuration configuration)
                                  throws java.io.IOException
Retuns an input stream out of the definition file to be used.

Specified by:
getDefinition in interface PlatformBuilder
Returns:
an input stream
Throws:
java.io.IOException - if the input stream could not be opened.

getRequiredProfile

public java.lang.String getRequiredProfile(PlatformContext context)
If the console option is set then it will return the tui profile otherwise will return null.

Specified by:
getRequiredProfile in interface PlatformBuilder
Parameters:
context - context information
Returns:
a comma separated list of profiles
See Also:
#getRequiredProfile(org.ops4j.pax.runner.platform.PlatformContext)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

getProviderName

public java.lang.String getProviderName()
Description copied from interface: PlatformBuilder
Returns the name of the provider (e.g. felix, equionox)

Specified by:
getProviderName in interface PlatformBuilder
Returns:
name of the provider
See Also:
PlatformBuilder.getProviderName()

getProviderVersion

public java.lang.String getProviderVersion()
Description copied from interface: PlatformBuilder
Returns the version of the provider (e.g. 1.0, 3.3.0)

Specified by:
getProviderVersion in interface PlatformBuilder
Returns:
version of the provider
See Also:
PlatformBuilder.getProviderVersion()


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