Skip to content

Commit

Permalink
LPS-23927 Revert renaming, but kept property doc change.
Browse files Browse the repository at this point in the history
  • Loading branch information
shuyangzhou authored and brianchandotcom committed Apr 23, 2024
1 parent ff8e394 commit 0b5da79
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected void invokeCustomInitMethod(
String beanName, Object bean, RootBeanDefinition rootBeanDefinition)
throws Throwable {

if (!PropsValues.SPRING_BEAN_FACTORY_STRICT_LIFECYCLE_ENABLED) {
if (!PropsValues.SPRING_BEANFACTORY_STRICT_LIFECYCLE_ENABLED) {
super.invokeCustomInitMethod(beanName, bean, rootBeanDefinition);

return;
Expand Down Expand Up @@ -176,7 +176,7 @@ protected void populateBean(
protected void registerDisposableBeanIfNecessary(
String beanName, Object bean, RootBeanDefinition rootBeanDefinition) {

if (!PropsValues.SPRING_BEAN_FACTORY_STRICT_LIFECYCLE_ENABLED) {
if (!PropsValues.SPRING_BEANFACTORY_STRICT_LIFECYCLE_ENABLED) {
super.registerDisposableBeanIfNecessary(
beanName, bean, rootBeanDefinition);

Expand Down
4 changes: 2 additions & 2 deletions portal-impl/src/com/liferay/portal/util/PropsValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -2197,10 +2197,10 @@ public class PropsValues {
public static String SOCIAL_ACTIVITY_SETS_SELECTOR = GetterUtil.getString(
PropsUtil.get(PropsKeys.SOCIAL_ACTIVITY_SETS_SELECTOR));

public static boolean SPRING_BEAN_FACTORY_STRICT_LIFECYCLE_ENABLED =
public static boolean SPRING_BEANFACTORY_STRICT_LIFECYCLE_ENABLED =
GetterUtil.getBoolean(
PropsUtil.get(
PropsKeys.SPRING_BEAN_FACTORY_STRICT_LIFECYCLE_ENABLED));
PropsKeys.SPRING_BEANFACTORY_STRICT_LIFECYCLE_ENABLED));

public static final String[] SPRING_CONFIGS = PropsUtil.getArray(
PropsKeys.SPRING_CONFIGS);
Expand Down
6 changes: 3 additions & 3 deletions portal-impl/src/portal.properties
Original file line number Diff line number Diff line change
Expand Up @@ -781,12 +781,12 @@
# Set this property to true to enable Spring bean factory strict lifecycle
# methods. This will remove Spring's inferring for bean lifecycle methods
# which can avoid large amount of NoSuchMethodException during bean factory
# initialization. Set this to property to fallback to Spring's default
# initialization. Set this to false to fallback to Spring's default
# behavior.
#
# Env: LIFERAY_SPRING_PERIOD_BEAN_PERIOD_FACTORY_PERIOD_STRICT_PERIOD_LIFECYCLE_PERIOD_ENABLED
# Env: LIFERAY_SPRING_PERIOD_BEANFACTORY_PERIOD_STRICT_PERIOD_LIFECYCLE_PERIOD_ENABLED
#
spring.bean.factory.strict.lifecycle.enabled=true
spring.beanfactory.strict.lifecycle.enabled=true

#
# Input a list of comma delimited Spring configurations. These will be
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2536,8 +2536,8 @@ public interface PropsKeys {

public static final String SOURCE_FORGE_MIRRORS = "source.forge.mirrors";

public static final String SPRING_BEAN_FACTORY_STRICT_LIFECYCLE_ENABLED =
"spring.bean.factory.strict.lifecycle.enabled";
public static final String SPRING_BEANFACTORY_STRICT_LIFECYCLE_ENABLED =
"spring.beanfactory.strict.lifecycle.enabled";

public static final String SPRING_CONFIGS = "spring.configs";

Expand Down

0 comments on commit 0b5da79

Please sign in to comment.