Skip to content

Proxy replaced with delegating config properties#2696

Merged
laurit merged 1 commit intosignalfx:mainfrom
robsunday:log-exporter-builder
Mar 12, 2026
Merged

Proxy replaced with delegating config properties#2696
laurit merged 1 commit intosignalfx:mainfrom
robsunday:log-exporter-builder

Conversation

@robsunday
Copy link
Copy Markdown
Contributor

@robsunday robsunday commented Mar 10, 2026

This is alternative for Proxy use introduced by #2695
The class implementing ExtendedDeclarativeConfigProperties interface is used instead of the Proxy.
Benefit from proposed solution is that any breaking changes made to ExtendedDeclarativeConfigProperties interface will raise some compilation error. Proxy based solution may get silently broken when ExtendedDeclarativeConfigProperties.getConfigProvider is renamed or removed.

@robsunday robsunday requested review from a team as code owners March 10, 2026 16:45
}

@Override
public ConfigProvider getConfigProvider() {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Too bad java doesn't have first-class delegation support like kotlin. 😭

Copy link
Copy Markdown
Contributor

@breedx-splk breedx-splk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok to me, hack hack hack away!

@laurit laurit merged commit f95722b into signalfx:main Mar 12, 2026
54 of 56 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants