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

TemporalInstance Beans #97

Merged
merged 1 commit into from
Sep 2, 2024
Merged

TemporalInstance Beans #97

merged 1 commit into from
Sep 2, 2024

Conversation

rmanibus
Copy link
Contributor

No description provided.


producer.produce(
SyntheticBeanBuildItem.configure(
ParameterizedType.create(TemporalInstance.class, ClassType.create(workflowBuildItem.workflow))
Copy link

Choose a reason for hiding this comment

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

You need to add the parameterized type to the set of bean types, e.g. with BeanConfiguratorBase#addType(Type). The configure() method only accepts the implementation class, i.e. something like this should work:

 SyntheticBeanBuildItem.configure(TemporalInstance.class)
                                .addType(ParameterizedType.create(TemporalInstance.class, ClassType.create(workflowBuildItem.workflow))
                               .scope(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

indeed, it's working now, thanks a lot !

Copy link

Choose a reason for hiding this comment

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

You're welcome! 👍

@rmanibus rmanibus force-pushed the temporal_instance branch 2 times, most recently from 9eb7a33 to 9ba89b8 Compare September 2, 2024 12:45
@rmanibus rmanibus marked this pull request as ready for review September 2, 2024 13:35
@rmanibus rmanibus requested a review from a team as a code owner September 2, 2024 13:35
@rmanibus rmanibus merged commit cb592a0 into main Sep 2, 2024
1 check passed
@rmanibus rmanibus deleted the temporal_instance branch September 2, 2024 14:43
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.

3 participants