Overriding OSGi Services

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:

  1. Get the service and service reference details

  2. Create a custom service

  3. Configure components to use your custom service

Start with examining the service you want to override.

« Overriding Liferay Services (Service Wrappers)Examining an OSGi Service to Override »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0