Chapter 8. Hooks

 

This chapter covers

  • Hooks, and why they’re necessary
  • Hooking into Liferay properties
  • Hooking into Liferay JSPs
  • Hooking into services
  • Customizing a Liferay portlet with a hook

Open source is making great headway in the business world today, but some organizations are still wary of it, and they have their reasons. One of the reasons is the maintenance problems you run into if you customize open source software with stuff that’s meant for your own organization but isn’t applicable to the project as a whole. Now you’ve got an issue: you have to maintain this customization through every new release of the open source software yourself. This means you probably have to understand the open source project at a much deeper level than you’ve been prepared for, and you need to be ready at each release to keep track of where your customizations go in order to reintroduce them into the base project.

8.1. What is a hook?

8.2. What hooks can customize

8.3. Hooks in action: customizing Inkwell’s shopping cart

8.4. Summary

sitemap