org.uispec4j.interception
Class MainClassAdapter

java.lang.Object
  extended by org.uispec4j.interception.MainClassAdapter
All Implemented Interfaces:
UISpecAdapter

public class MainClassAdapter
extends java.lang.Object
implements UISpecAdapter

Adapter that intercepts the window displayed by the main() of a given class.

This adapter keeps the reference of the intercepted window, so that main() is not called on subsequent calls. If you need to run main() again, you can either call reset() or create a new adapter.


Constructor Summary
MainClassAdapter(java.lang.Class mainClass, java.lang.String... args)
           
 
Method Summary
 Window getMainWindow()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainClassAdapter

public MainClassAdapter(java.lang.Class mainClass,
                        java.lang.String... args)
Method Detail

getMainWindow

public Window getMainWindow()
Specified by:
getMainWindow in interface UISpecAdapter

reset

public void reset()


Copyright © 2004-2010. All Rights Reserved.