@ Component We will need this annotation to define a component and publish into the Liferay OSGI container immediate - ensure the component is started right away and not wait for a reference properties - Used to pass in a set of OSGi properties to bind to the component. service - Defines the service that the component implements. EXAMPLE /** * @author manish */ @Component ( immediate = true , property = { "com.liferay.portlet.display-category=category.sample" , "com.liferay.portlet.header-portlet-css=/css/main.css" , "com.liferay.portlet.instanceable=true" , "javax.portlet.display-name=VINTracker" , "javax.portlet.init-param.template-path=/" , "javax.portlet.init-param.view-template=/view.jsp" , "javax.portlet.name=" + VINTrackerPortletKeys. VINTRACKER , "javax.portlet.resource-bundle=content.Language" , "javax.portlet.security-role-ref=power-user,user...