Components register as services with the OSGi service registry. A service component’s availability, ranking, and attributes determine whether components referring to the service type bind to that particular service. Liferay DXP’s OSGI container is a dynamic environment in which services come and go and can be overridden, which means that if there’s a service whose behavior you want to change, you can override it. Here are the steps for overriding a service:
Start with examining the service you want to override.