1 / 19

Overview Component-Oriented Programming

Overview Component-Oriented Programming. Erizal , S.Si , M.Kom Universitas Respati Yogyakarta erizalmik@yahoo.com http://erizal.wordpress.com. Object-Oriented Programming (OOP).

rosine
Download Presentation

Overview Component-Oriented Programming

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. OverviewComponent-Oriented Programming Erizal, S.Si, M.Kom UniversitasRespati Yogyakarta erizalmik@yahoo.com http://erizal.wordpress.com

  2. Object-Oriented Programming (OOP) Abstraksi : mendefinisikanobyekabstrak yang mampumelakukankegiatan, mengubah state, danberkomunikasidenganobyek lain padasistem Enkapsulasi : Menyembunyikaninformasidan detail implementasisebuah method, sertamengaturaksesterhadapatribut/method

  3. Object-Oriented Programming (OOP) Polimorfisme : Membuatobyekdaritipe yang berbedadapatsalingdipertukarkanselamadimungkinkan Inheritance : Pewarisanatributdan method darisuperclasske subclass

  4. Component-Oriented Programming • Metodepemrograman yang menekankandekomposisisistemmenjadikomponen yang reusable danmemiliki interface untukdapatberkomunikasidengankomponen yang lain. • COP mengembangkan software denganmelakukan assembling components • OOP berhubungandengan class & obyek, sedangkan COP berhubungandengan interfaces dan composition.

  5. Kenapa COP? • Menyediakan level abstraksi yang lebihtinggi • Tidakmenyimpan state • Menggunakan message passing untuk • pertukaran data • COP bersifatreuseable • Waktu develop bisalebihcepat • Penambahanfiturbarucukupdenganmenggabungkandenganmodul lain

  6. Komponen • Bagiandarisebuahsistem yang bersifat semi- independendan replaceable, yang menyediakanlayanan yang terdefinisi • Runtime Component : Dynamically bindable package of programs managed as a unit and accessed through documented interfaces that can be discovered at runtime • Software Component : Piece of self-contained, self deployable computer code with well-defined functionality and can be assembled with other components through it's interface • Business Component : Software implementation of business concept or business process.

  7. Contoh Component • JavaBeans dan EJB dari SUN • COM, DCOM, ActiveX dan .NET Component dari Microsoft • CORBA dari OMG • XPCOM dari Mozilla • VCL dan CLX dari Borland • UNO dari OpenOffice.org

  8. COP vs OOP • Interface-based • Packaging and distribution technology • Supports high-level reuse • Can be written in any language • Loosely coupled components • Supports multiple interfaces and interface-oriented design • Object-based • An implementation technology • Supports low-level reuse • Bound to OO languages • Tightly coupled objects dependent on each other through inheritance implementation • Does not provide clear relationship of interfaces among superclasses and subclasses.

  9. COP vs OOP • Supports more forms of dynamic binding and dynamic discovery • Has better mechanisms for third-party composition • Provides more support for higher-order services (security, transactions, etc.) • COP components are designed to obey rules of the underlying component framework • OOP provides limited support for object retrieval and runtime composition mechanisms • Has limited forms of connectors (method invocation) • Has limited sets of supported services such as security, transactions, and so on • OOP objects are designed to obey OO principles

  10. Component Based Software Engineering • CBSE = COA + COD + COP + COM • COA = component-oriented analysis • COD = component-oriented design • COP = component-oriented programming • COM = component-oriented management

  11. TeknologiBerbasisKomponenPada Enterprise Javabeans (EJB) • Sun Microsystem, sebagaisebuahperusahaanpengembang software arsitekturberorientasiobyek, mengembangkanaplikasiuntuksistemberskalaenterprise. Sisteminidikenaldengansebutan Enterprise JavaBeans (EJB). Arsitekturteknologiinilebihmenekankankepadasistem yang terdistribusi, yaknibagaimanamenjalankankomponen-komponen enterprise padasistem yang terdistribusi.

  12. Arsitektur EJB

  13. CORBA • Interoperabilitasadalahkemampuansalingbekerjasamaantarsistemkomputer. • Sebenarnyainteroperabilitasbukanlahbarangbaru, karenaprotokolkomunikasidatapun (TCP/IP misalnya) padadasarnyadiciptakanuntukmewujudkaninteroperabilitas. Yang belumbanyakdikenaladalahinteroperabilitaspada level perangkatlunakaplikasi.

  14. Interoperabilitasperangkatlunakmenuntuthomogenitaspadasuatu level tertentu. Untukitudiperlukansemacam 'standarisasi'. Berawaldarikeperluaninilahirlah CORBA (Common Object Request Broker Architecture).

  15. Arsitektur CORBA • CORBA adalahsebuaharsitektur software yang berbasispadateknologiberorientasiobyekatau Object Oriented (OO) denganparadigma client-server. • Dalamterminologi OO, sebuahobyekberkomunikasidenganobyek lain dengancarapengirimanpesan (message passing). Kontekskomunikasiinikemudiandipetakankedalam model client-server

  16. Arsitektur CORBA • CORBA memilikikemampuandalammenanganiheterogenitasantara client dan server (obyek server dinamakan object implementation) • Keduanyadapatsajadiimplementasikandalam hardware, sistemoperasi, bahasapemrograman, dandilokasi yang berbeda, tetapitetapbisasalingberkomunikasi. • Kuncinyaadapadasebuahlapisan software yang disebutdengan ORB(Object Request Broker).

  17. MVC (Model View Controller) • Model View Controller (MVC) adalahsebuahpola yang dapatmembangunproyekperangkatlunaklebihefektifkarenadilakukandenganmemilahkomponenantara Model, View, dn Controller padabagian- bagiandalamproyek. • Dalam MVC dikenaltigakomponenpembangun, dimanaadainteraksi yang terjadidiantaramereka.

  18. MVC (Model View Controller)

  19. END OF MODUL

More Related