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

All Known Subinterfaces:
ContainerConfig, SeleniumServerConfig, SeleniumSessionConfig

public interface ScopedProviderRegistry<T,E>


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

Method Detail

register

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

ScopedProvider<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.