Uploaded image for project: 'PUBLIC - Liferay Portal Enterprise Edition'
  1. PUBLIC - Liferay Portal Enterprise Edition
  2. LPE-1363

Switching ExpandoBridge implementation has been simplified

Details

    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

          Activity

            People

              samuel.kong Samuel Kong
              brian.chan Brian Chan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  5.2 EE SP2 (5.2.6)