Deprecate XyzUtil.setPersistence and setService
Description
Activity
Show:
Fixed
Details
Assignee
SE SupportSE SupportReporter
Brian ChanBrian ChanLabels
Components
Affects versions
Priority
Medium
Details
Details
Assignee

Reporter

Labels
Components
Affects versions
Priority
Zendesk Support
Linked Tickets
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created May 1, 2012 at 11:43 AM
Updated June 24, 2023 at 3:57 PM
Resolved May 1, 2012 at 11:43 AM
XyzUtil.setPersistence and setService has not been used since 4.x. We no longe set the service from Spring but we look them up as we need them. Allowing someone to set it can also be dangerous because the other injected references may be different from the one that is set.
For example, if we overwrote UserLocalServiceUtil.setService, that does not mean that GroupLocalServiceImpl's injected reference to userLocalService is changed. If you want to modify it, use a hook.