Adaptor for the plug-in tracker.

Tracking Software Components
by Jerry Gao, Ph.D., Eugene Y. Zhu, and Simon Shim, Ph.D.
Listing 2. Adaptor for the plug-in tracker.


public class BeanTrackerAdapter implements IBeanTracker   {
    public void traceError (String errormsg)  {  }
    public void traceInterface (String methodName, String paramvalue)  {  }
    public void traceOperation (String methodName)  {  }
    public void tracePerformance (String label)  {  }
    public void tracePerformance (String label, boolean isBegin)   {  }
    public void traceState (String name, String value)  {  }
    public EventListener genGUIListener ( )  {return (EventListener)
        (new GUIListenerAdapter  ( )  ) ; }
    public void trace GUI (String itemname, String event) {  }
}

class GUIListenerAdapter extends Object
implements WindowListener, ActionListener, TextListener  {
    public GUIListenerAdapter ( )  { }

/ / implement WindowListener interface
    public void windowActivated (WindowEvent   e)  { }
    public void windowClosed (WindowEvent  e)  { }
    public void windowClosing (WindowEvent  e)  { }
    public void windowDeactivated (WindowEvent  e)  { }
    public void windowDeiconified (WindowEvent  e)  { }
    public void windowIconified (WindowEvent  e)  { }
    public void windowOpened (WindowEvent  e)  { }

/ / implement ActionListener interface
    public void actionPerformed (ActionEvent  e)  { }

    / / implement TextListener interface
    public void textValueChanged (TextEvent  e) { }
}

About the Authors

Jerry Gao, Ph.D. is a full-time faculty member in the Department of Computer Engineering at San Jose University and can be reached at [email protected].

Eugene Zhu works at SCSL USA Inc. and may be reached at [email protected].

Simon Shim, Ph.D. is a full-time faculty member in the Department of Computer Engineering at San Jose University and may be reached at [email protected].