Package: geb.buildadapter

## [Groovy] Class BuildAdapterFactory

- geb.buildadapter.BuildAdapterFactory

-     class BuildAdapterFactory
      extends Object

  Loads the BuildAdapter implementation class to be used.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static String` | `ADAPTER_PROPERTY_NAME` | The system property used to specify the BuildAdapter implementation (`geb.build.adapter`).

  - ### Constructor Summary

    Constructors
    Constructor and description
    `BuildAdapterFactory()`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static BuildAdapter` | `getBuildAdapter(ClassLoader classLoader)` The build adapter to use.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### public static final String ADAPTER_PROPERTY_NAME

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

  - ### Constructor Detail

    - #### BuildAdapterFactory()

  - ### Method Detail

    - #### 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