com.atlassian.pageobjects
Interface DelayedBinder<T>


@NotThreadSafe
public interface DelayedBinder<T>

A delayed binder that gives the caller full control over the creation and lifecycle of the page object.


Method Summary
 T bind()
          Builds, waits for, validates the state of, and returns the page object
 boolean canBind()
          Goes through the full binding, including lifecycle methods, to determine whether the page object can be bound.
 T get()
           
 DelayedBinder<T> inject()
          Instantiates, injects, and initialises the page object, but doesn't execute its lifecycle methods.
 DelayedBinder<T> validateState()
          Builds, waits for, and validates the state of the page object
 DelayedBinder<T> waitUntil()
          Builds the page object and executes its waitfor lifecycle methods
 

Method Detail

inject

DelayedBinder<T> inject()
Instantiates, injects, and initialises the page object, but doesn't execute its lifecycle methods.

Returns:
The binder for chaining

waitUntil

DelayedBinder<T> waitUntil()
Builds the page object and executes its waitfor lifecycle methods

Returns:
The binder for chaining

validateState

DelayedBinder<T> validateState()
Builds, waits for, and validates the state of the page object

Returns:
The binder for chaining

canBind

boolean canBind()
Goes through the full binding, including lifecycle methods, to determine whether the page object can be bound.

Returns:
True if the binding was successful, in which case bind() will return the page object instance without failing

get

T get()
Returns:
The current page object, building if necessary. If called before any other methods are called, it will return the instantiated object but with no injections or lifecycle methods called.

bind

T bind()
Builds, waits for, validates the state of, and returns the page object

Returns:
The fully bound page object


Copyright © 2014 Atlassian. All rights reserved.