ComponentsinGNOME课程.pptVIP

  • 0
  • 0
  • 约7.51千字
  • 约 34页
  • 2017-03-15 发布于江苏
  • 举报
Components in GNOME 林咸禮 Outline Components in GNOME Why object model ? The uses of CORBA Implementation notes ORBit Programming Why object model ? 1/3 UNIX pipe system Allow users to create new results by joining smaller components. ls | more Why object model ? 2/3 Pipe in modern desktop environment The information flow is unidirectional Characters, lines, and entire files are basic unit of information exchange. Not scale well with complex application Solution Component based programming framework But UNIX lacks such a framework Why object model ? 3/3 GNOME provides a component model Based on OMG’s CORBA Adapt ORBit implementation The uses of CORBA in GNOME Exporting an application’s API General IPC and RPC mechanism Scripting Automate common tasks Define system services Standard interfaces Bonobo Document based application Exporting an application’s API Export internal engine Use interfaces in GNOME::Gnumeric Guppi can manipulate a spreadsheet in gnumeric Standard interfaces to implement Desktop::Editor A mail client can choose any Editor that implement Desktop::Editor IPC and RPC Mechanism 1/4 Process communication In traditional UNIX world IPC: shared memory, pipe… RPC: TCP/IP IPC/RPC protocols are hand-crafted individually Hard to maintain and too efforts on details IPC and RPC Mechanism 2/4 CORBA provide object location transparency IPC and RPC Mechanism 3/4 Currently use: Communicate with embedded applications GNOME Control and GNOME Panel Modify a “live” application Changes happen to the current server on the fly Mod_CORBA apache module, Dents DNS Server IPC and RPC Mechanism 4/4 Scripting Allow user to automate common tasks Like macro and VBA in Windows Manipulate a gnumeric spreadsheet, automate some repetitive tasks… Major scripting languages on UNIX have CORBA binding Such as Perl, Python and Java Define system services Many procedure carried on UNIX do not have a standard rely on tradition Use helper script is not robust Define st

文档评论(0)

1亿VIP精品文档

相关文档