org.uispec4j.interception
Class MainClassAdapter
java.lang.Object
org.uispec4j.interception.MainClassAdapter
- All Implemented Interfaces:
- UISpecAdapter
- public class MainClassAdapter
- extends 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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MainClassAdapter
public MainClassAdapter(Class mainClass,
String[] args)
getMainWindow
public Window getMainWindow()
- Specified by:
getMainWindow in interface UISpecAdapter
reset
public void reset()
Copyright © 2004-2007 Design-up. All Rights Reserved.