Membuat Aplikasi berbasis plugin dengan vbnet
Posted by sonypringu pada April 25, 2010
Tentunya Anda sudah akrab dengan istilah plugin atau add-on, yaitu fungsionalitas yang bisa ditambah ataupun dikurangi terhadap satu aplikasi. Sebagai contoh WinAmp, yang umum dikenal sebagai aplikasi pemutar MP3, dengan bantuan plugin maka fungsionalitas WinAmp tidak hanya sebagai pemutar MP3, tapi bisa juga digunakan untuk mengkonversi MP3 ke format lainnya, menambahkan efek suara tertentu, atau bahkan dapat digunakan untuk bermain game.
Mengembangkan aplikasi yang berbasis plugin menggunakan .NET tidaklah sulit, dengan menggunakan reflection sebetulnya cukup, hanya saja akan sangat sulit untuk dimaintain apalagi jika melibatkan banyak developer.
Mengembangkan aplikasi berbasis plugin tentunya mempunyai beberapa kelebihan, satu diantaranya
Microsoft telah mengeluarkan sebuah framework baru, yaitu Net Framework 4, yang salah satu komponennya Managed Extensibility Framework (MEF)
Managed Extensibility Framework (MEF) is the next BIG thing happening in .Net Framework 4. This framework allows the developers to extend their apps in completely decoupled fashion.So what does that means well you can simply plug in (let us say new module) without recompiling the your main application. All that is required here that all the modules of the application follows the same contract.In this post , which is part one of two series. I will do a walkthrough of some real time scenario where you can apply MEF practically. Before you continue to read further , I strongly recommend that you get sound understanding of MEF. This post only talks about the MEF stuff that will be used in this project. You can look below in the reference section below to learn MEF.