Groovy Documentation

geb.buildadapter
[Groovy] Class BuildAdapterFactory

java.lang.Object
  geb.buildadapter.BuildAdapterFactory

class BuildAdapterFactory

Loads the BuildAdapter implementation class to be used.


Field Summary
static String ADAPTER_PROPERTY_NAME

The system property used to specify the BuildAdapter implementation (geb.build.adapter).

 
Method Summary
static BuildAdapter getBuildAdapter(ClassLoader classLoader)

The build adapter to use.

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

ADAPTER_PROPERTY_NAME

public static final String ADAPTER_PROPERTY_NAME
The system property used to specify the BuildAdapter implementation (geb.build.adapter).


 
Method Detail

getBuildAdapter

static BuildAdapter getBuildAdapter(ClassLoader classLoader)
The build adapter to use.

If the system property geb.build.adapter is set, the class by that name is loaded, instatied with no args, and returned. Otherwise, an instance of SystemPropertiesBuildAdapter will be returned.

throws:
ClassNotFoundException If the system property specifies a non existent class
Parameters:
classLoader - The class loader to attempt to load the class with


 

Groovy API Documentation for Geb 0.9.1 - Licensed under the Apache License, Version 2.0 - http://www.gebish.org