Package gda.jython

Class JythonServerFacade

java.lang.Object
gda.jython.JythonServerFacade
All Implemented Interfaces:
AliasedCommandProvider, ICommandThreadInfoProvider, TextCompleter, IAuthorisationHolder, IBatonStateProvider, ICommandAborter, ICommandRunner, ICurrentScanController, IJythonContext, IJythonNamespace, IScanDataPointProvider, IScanStatusHolder, IScriptController, ITerminalOutputProvider, ITerminalPrinter, JSFObserver, gda.observable.IObservable, gda.observable.IObserver, org.springframework.beans.factory.InitializingBean

Provides a single point of access for the Jython package for all Java classes. This will work whether the Java is located client-side, server-side, on the same or different ObjectServers.

This object holds inside a reference to the CommandServer object which holds inside of it the interpreter.

Calls to this class must not occur during instantiation of objects. However, if they use the Configurable interface, then this class can be used during their configure phase.

Objects should register themselves as IObservers of this object to receive updates about scans, scripts, the script queue and data from scans.

This object does not directly implement the Jython interface. This is deliberate to safely restrict what functionality is given to other classes in the GDA. Only this class should communicate directly to the local JythonServer or JythonAdapter.

  • Constructor Details

    • JythonServerFacade

      protected JythonServerFacade(Jython commandServer) throws InstantiationException
      Creates a Jython server facade, using the specified Jython command server.
      Parameters:
      commandServer - the Jython command server
      Throws:
      InstantiationException
    • JythonServerFacade

      protected JythonServerFacade(Jython commandServer, String username, String fullName) throws InstantiationException
      Creates a Jython server facade, using the specified Jython command server, username and fullName.
      Parameters:
      commandServer - the Jython command server
      username - the username of the person using this JSF
      fullName - the full name of the person using this JSF
      Throws:
      InstantiationException
  • Method Details