在Liferay DXP中覆盖组件提供的服务

时间:2017-09-25 14:25:24

标签: liferay osgi liferay-dxp

我是开发Liferay DXP和OSGi的新手。 当我们使用Liferay 6.2时,我们使用Spring来配置 com.liferay.portal.security.ldap.PortalLDAPExporterUtil 以使用我们实现 com.liferay.portal.security.ldap.PortalLDAPExporter的类 com.liferay.portal.security.ldap.PortalLDAPImporterUtil 使用我们的实现 com.liferay.portal.security.ldap.PortalLDAPExporter 的类,并实现我们自己的 com.liferay.portal.security.auth.Authenticator 。 现在我们正在使用Liferay DXP,我已经能够更改模块组件使用的其中一项服务,但如果我想更改组件提供的服务,该怎么办?我注意到 com.liferay.portal.security.ldap.internal.authenticator.LDAPAuth com.liferay.portal.security.ldap.internal.exportimport.LDAPUserExporterImpl ,以及 com.liferay.portal.security.ldap.internal.exportimport.LDAPUserImporterImpl 是LDAP应用程序" Liferay Portal Security LDAP"的所有组件。模块。我想确保使用我的这些东西的版本,而不是LDAP的版本。是否可以替换模块的组件或组件提供的服务的实现?或者我是否需要用我自己的版本替换整个LDAP应用程序?

0 个答案:

没有答案