|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.test.selenium.framework.AjaxSeleniumProxy
public final class AjaxSeleniumProxy
Proxy for retrieving thread local context of AjaxSelenium.
All methods on returned proxy will be invoked on AjaxSelenium instance associated with current thread.
Proxy specifically handles the situations when no context is set - in this situation, runtime exception with IllegalStateException cause is thrown.
Especially, the ExtendedTypedSelenium.isStarted() method is handled in that situation, it returns false instead of
throwing exception. Therefore it can be safely used for obtaining current status of Selenium initialization.
| Method Summary | |
|---|---|
static AjaxSelenium |
getInstance()
Returns the instance of proxy to thread local context of AjaxSelenium |
Object |
invoke(Object proxy,
Method method,
Object[] args)
End point for handling invocations on proxy |
static boolean |
isContextInitialized()
|
static void |
setCurrentContext(AjaxSelenium selenium)
Sets the AjaxSelenium context for current thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setCurrentContext(AjaxSelenium selenium)
selenium - the AjaxSelenium instancepublic static boolean isContextInitialized()
public static AjaxSelenium getInstance()
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
invoke in interface InvocationHandlerThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||