Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[issue-229] do not persist legacy property-backed-beans from legacy propertybackedbeans on init #230

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,21 @@ protected void handleNewPropertyBackedBean(final PropertyBackedBean propertyBack

// for some reason most subsystem beans are by default not configured to broadcast property changes
// JMX only works because it is the only tool / component dealing with this, and only performs direct calls
if (propertyBackedBean instanceof AbstractPropertyBackedBean)
try
{
((AbstractPropertyBackedBean) propertyBackedBean).setSaveSetProperty(true);
if (propertyBackedBean instanceof AbstractPropertyBackedBean)
{
((AbstractPropertyBackedBean) propertyBackedBean).setSaveSetProperty(false);
}
this.initializeFromPersistedProperties(name, propertyBackedBean);
}
finally
{
if (propertyBackedBean instanceof AbstractPropertyBackedBean)
{
((AbstractPropertyBackedBean) propertyBackedBean).setSaveSetProperty(true);
}
}

this.initializeFromPersistedProperties(name, propertyBackedBean);
}

protected void handleRemovedPropertyBackedBean(final PropertyBackedBean propertyBackedBean, final boolean permanent)
Expand Down
Loading