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

Refactor resolvers to support configuration #758

Merged
merged 3 commits into from
Jan 23, 2024

Conversation

jfallows
Copy link
Contributor

Refactor resolvers to support configuration

String value = resolver.resolve(var);
return value != null ? value : "";
}

private ExpressionResolver(
Map<String, ExpressionResolverSpi> resolverSpis)
private static Resolver instantiate(
Copy link
Contributor

Choose a reason for hiding this comment

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

Since there is only one call to this method can we consolidate

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, but I'm keeping the pattern consistent in case we can reuse the FactorySpi later.

@jfallows jfallows enabled auto-merge (squash) January 23, 2024 23:01
@jfallows jfallows merged commit 791b506 into aklivity:develop Jan 23, 2024
2 of 5 checks passed
attilakreiner added a commit to attilakreiner/zilla that referenced this pull request Jan 24, 2024
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