org.testatoo.config
Interface ProviderRegistry<T,E>


public interface ProviderRegistry<T,E>


Method Summary
 E register(Provider<T> provider)
          Register in Testatoo an implementation provider.
 E register(T instance)
          Register in Testatoo an exetrnal built implementation.
 

Method Detail

register

E register(T instance)
Register in Testatoo an exetrnal built implementation. It will be managed (started, stopped, ...) by Testatoo.

Parameters:
instance - The object instance to register. I.e. Selenium Server, Selenium Session, WebDriver, ...
Returns:
this

register

E register(Provider<T> provider)
Register in Testatoo an implementation provider. It will be managed (started, stopped, ...) by Testatoo.

Provider are usually created by builders with the create...() methods in Tesatoo module configuration. But you can provide you own implementation if you need.

Parameters:
provider - A Provider which will return the implementation when called
Returns:
this


Copyright © 2008-2010 Ovea. All Rights Reserved.