com.ge.research.acuity
Class InterfaceAdapter

java.lang.Object
  extended bycom.ge.research.acuity.InterfaceAdapter
Direct Known Subclasses:
ScriptInvocationIA

public abstract class InterfaceAdapter
extends java.lang.Object

Abstract specialization utility class that performs the interface operations for a specific function or function grouping, between the AcuityController and an ACUITy UI client application.

Version:
$Revision: 1.1 $ $Date: 2006/08/11 00:17:21 $
Author:
garbiras
Created on:
Jul 5, 2005

Field Summary
protected  AcuityController controller
          The reference to a AcuityController used by the ControllerInterface
protected  ControllerInterface controllerInterface
          The reference to a ControllerInterface to use to process requests
 
Constructor Summary
InterfaceAdapter(ControllerInterface ci, AcuityController ac)
          Default constructor.
 
Method Summary
protected  void checkControllers()
          Checks to see if this class contains references to a valid ControllerInterface and a valid AcuityController
 void finalize()
          Releases the references to the ControllerInterface and AcuityController for garbage collection.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controllerInterface

protected ControllerInterface controllerInterface
The reference to a ControllerInterface to use to process requests


controller

protected AcuityController controller
The reference to a AcuityController used by the ControllerInterface

Constructor Detail

InterfaceAdapter

public InterfaceAdapter(ControllerInterface ci,
                        AcuityController ac)
                 throws java.lang.IllegalArgumentException
Default constructor. Sets up the references to the ControllerInterface and AcuityController to use.

Parameters:
ci - the ControllerInterface to use
ac - the AcuityController to use
Throws:
java.lang.IllegalArgumentException - If either of the arguments is null
Method Detail

finalize

public void finalize()
Releases the references to the ControllerInterface and AcuityController for garbage collection.


checkControllers

protected final void checkControllers()
                               throws java.lang.IllegalStateException
Checks to see if this class contains references to a valid ControllerInterface and a valid AcuityController

Throws:
java.lang.IllegalStateException - If the class reference to the ControllerInterface is null, or if the ControllerInterface.checkController() method throws such an error.
See Also:
ControllerInterface.checkController()