Dynamic behavior plug in selection and execution

This preview shows page 8 - 13 out of 14 pages.

Dynamic Behavior : Plug-in Selection and Execution HostApplication PluginRegistry Plugin GetAvailablePlugins SelectPlugin CreatePlugin(descriptor) Op1 Op2 Delete New plugin descriptor iterator
Image of page 8

Subscribe to view the full document.

Dynamic Behavior : Plug-in Un-registration Plugin Uninstaller PluginRegistry UnregisterPlugin(descriptor)
Image of page 9
Implementation Plug-ins are frequently implemented as dynamically-linked libraries The host application loads the plug-in DLLs that have been registered Registration techniques Just copy the plug-in DLL into a special directory. The host application loads all DLLs in the plug-in directory, and queries each DLL for information about its plug-in Installer puts an entry in a configuration file that indicates where the plug-in DLL is located
Image of page 10

Subscribe to view the full document.

Implementation In Java a plug-in could be a .class file containing the plug-in class Registration could be as simple as putting the name of the plug-in class in a configuration file The host application uses reflection to instantiate plug-in classes by name, which causes the classes to be loaded into the VM
Image of page 11
Known Uses Web browser plug-ins for different file formats PDF, PowerPoint, Word, etc.
Image of page 12

Subscribe to view the full document.

Image of page 13
You've reached the end of this preview.
  • Fall '08
  • Woodfield,S
  • Web browser, File format, Syntax highlighting

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern