Package gda.jython

Interface LocalJython

All Superinterfaces:
Findable, ICurrentScanInformationHolder, IDefaultScannableProvider, IJythonServerNotifer, IJythonServerStatusProvider, gda.observable.IObservable, Jython
All Known Implementing Classes:
JythonServer

Interface for the local JythonServer object.

It supplies extra functionality to the distributed Jython interface so it may pass object references to server-side objects.

Examples of this would be objects in Jython scripts which would like access to the scan object as it is running.

  • Method Details

    • getAllObjectsOfType

      <F extends Findable> Map<String,F> getAllObjectsOfType(Class<F> clazz)
    • getAllNamesForType

      default <F extends Findable> Set<String> getAllNamesForType(Class<F> clazz)
      Description copied from interface: Jython
      Returns all names for all Objects of a type in the Jython namespace
      Specified by:
      getAllNamesForType in interface Jython
      Parameters:
      clazz - a Class extending Findable
      Returns:
      a set of all names of all objects of a type in the Jython namespace.
    • runAsJython

      Thread runAsJython(Runnable task, String jsfIdentifier)
      Run the given task in a Jython thread - allows it to be linked to a specific client and be restricted by its authorization level