org.ops4j.pax.drone.connector.paxrunner.intern
Class PaxRunnerConnectorConfigurationImpl

java.lang.Object
  extended by org.ops4j.pax.drone.connector.paxrunner.intern.PaxRunnerConnectorConfigurationImpl
All Implemented Interfaces:
PaxRunnerConnectorConfiguration, ConnectorConfiguration

public class PaxRunnerConnectorConfigurationImpl
extends java.lang.Object
implements PaxRunnerConnectorConfiguration

User: Toni Menzel (tonit) Date: Jun 17, 2008

Meant to construct a PaxRunner setup in PaxDrone.

You can add bundles (as dependendy of the drone) as well as recipes (plain methods for now)


Constructor Summary
PaxRunnerConnectorConfigurationImpl(java.lang.Object clazzUnderTest)
           
 
Method Summary
 PaxRunnerConnectorConfiguration addBundle(java.lang.String s)
          Add a required bundle
 DroneBuilder getBuilder()
          all configuration needed to build a drone on demand.
 java.util.Set<java.lang.String> getBundles()
           
 DroneConnector getConnector()
           
 java.lang.String[] getOptions()
          Constructs options for PaxRunner out of *this* Everything you *add* to this instance will (probably) end up in those options.
 java.io.File getWorkingDirectory()
           
 PaxRunnerConnectorConfiguration setPlatform(Platforms platform)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PaxRunnerConnectorConfigurationImpl

public PaxRunnerConnectorConfigurationImpl(java.lang.Object clazzUnderTest)
Method Detail

getConnector

public final DroneConnector getConnector()
Specified by:
getConnector in interface ConnectorConfiguration
Returns:
instance of PaxRunnerConnecor that is being configured via *this*

getBuilder

public DroneBuilder getBuilder()
all configuration needed to build a drone on demand. Might be overwriten.

Specified by:
getBuilder in interface PaxRunnerConnectorConfiguration
Returns:
a DroneBuilder that uses IntelliResourceFinder to locate resources.

addBundle

public PaxRunnerConnectorConfiguration addBundle(java.lang.String s)
Description copied from interface: ConnectorConfiguration
Add a required bundle

Specified by:
addBundle in interface ConnectorConfiguration
Parameters:
s - location of bundle
Returns:

getBundles

public java.util.Set<java.lang.String> getBundles()
Specified by:
getBundles in interface PaxRunnerConnectorConfiguration

setPlatform

public PaxRunnerConnectorConfiguration setPlatform(Platforms platform)
Specified by:
setPlatform in interface PaxRunnerConnectorConfiguration

getOptions

public java.lang.String[] getOptions()
Constructs options for PaxRunner out of *this* Everything you *add* to this instance will (probably) end up in those options.

Specified by:
getOptions in interface PaxRunnerConnectorConfiguration
Returns:
a PaxRunner compatible option list

getWorkingDirectory

public java.io.File getWorkingDirectory()


Copyright © 2008. All Rights Reserved.