Override OSGi Component Properties
Override OSGi Component Properties Overview You may need to change some properties for Liferay's OSGi @Component in order to customize the built-in behavior, but you don't want to override the whole component. Fortunately, there is an easy way to achieve this. This article will explain how to do this. Sample scenario Let's say, you want to add the "Notifications" portlet to a user profile page. But when you try do this - you can't find this portlet among the available ones: When you check the sources - you'll find out, that "Notifications" portlet is hidden: Obviously, you just need to change the display category. But this is the internal Lifeay code, which you can't just modify. Fortunately, all those properties are easy customizable. Here are the required steps: Create a [Component-Classname].config class in [Liferay]/osgi/configs folder; Add properties you need to override inside the created file; Restart Lifer...