Controllers that implement the ControllerInterface provide AFEs with access to system services. In the current version, two types of controller classes are available: PrintController and DataController. The PrintController provides access to printers while the DataController provides access to data stores. Note that there is only one instance of the Controller for each system service. The interface consists of the method below.
public Object getController(int type) { switch (type) { case ControllerInterface.PRINTER: return printController; case ControllerInterface.DATASTORE: return DataController; default: return null; } }