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

Allow property expansion for mux keys. #560

Merged
merged 2 commits into from
Aug 18, 2023

Conversation

alcarraz
Copy link
Contributor

@alcarraz alcarraz commented Aug 18, 2023

Property expansion is made in toStringArray to avoid repetitive code. But it could be explicit in the method call if preferred.

Also, set default key only once. This could be undone, but it was getting a child of the parent in the loop instead of using the content of the child, so the effect is the same.

Basically, I want to be able to do this:

<mux name="probe-mux" class="org.jpos.q2.iso.QMUX"
     enabled="${probe.enabled:true}"
     logger="${probe.logger:Q2}" realm="probe-mux">
  <key>${probe.mux.key:11,41}</key>
  <in>probe-receive</in>
  <out>probe-send</out>

  <ready>probe-channel.ready</ready>
</mux>

@ar ar merged commit 39566b1 into jpos:master Aug 18, 2023
16 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants