Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
5.2 EE SP1 (5.2.5)
-
All
Description
Switching the ExpandoBridge implementation has been simplified with Spring.
To replace the default implementation with a custom implementation, modify the following bean in ext-spring.xml
<bean id="com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil" class="com.liferay.portlet.expando.util.ExpandoBridgeFactoryUtil">
<property name="expandoBridgeFactory">
<bean class="com.liferay.portlet.expando.util.ExpandoBridgeFactoryImpl" />
</property>
</bean>
In order to use the use custom implementation, replace all direct uses of ExpandoBridgeImpl
new ExpandoBridgeImpl(className, classPK)
with the following
ExpandoBridgeFactoryUtil.getExpandoBridge(className, classPK)
Attachments
Issue Links
- is related to
-
LPS-4923 Instantiation of ExpandoBridge should be through an ExpandoBridgeFactory so that we can swap it if needed
- Closed