Hooking into Spring component creation with new module #2698
-
I am trying to move our modules from Conductor 2.31 to the new Spring model in 3.4.1. I am having difficulty figuring out how to get my components created by Spring. I have a 'properties' class with the @ConfigurationProperties annotation, a 'configuration' class with the @EnableConfiguriationProperties annotation pointing to that 'properties' class and a component that uses those properties in a Java class annotated with @component. The 'configuration' class creates a @bean for the component. When Conductor starts up, it does not automatically instantiate any of these classes. I have reviewed a lot of the Spring documentation to try and figure out how it all fits together and I have looked at the other modules as examples but so far nothing has helped. Two questions:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There is none, since Conductor is like any other spring boot application. But this is the first request we had about someone moving modules from 2.31 to 3.x. We will consider adding a guide.
If this new module is for contribution to Conductor, i recommend following the package name. If its for internal use and want to use a custom package name, i suggest changing the SpringBootApplication annotation like below,
Hope this helps. Let us know if you run into issues. |
Beta Was this translation helpful? Give feedback.
-
@rickfish We would like to know more about Conductor users. As a start, we are gathering who is using Conductor. Appreciate if you can send a PR containing your company information in WHOSUSING.md. |
Beta Was this translation helpful? Give feedback.
There is none, since Conductor is like any other spring boot application. But this is the first request we had about someone moving modules from 2.31 to 3.x. We will consider adding a guide.
componentscan
is not needed whenSpringBootApplication
is used. By default all classes undercom.netflix.conductor
are scanned. My guess is that the new module you are creating doesn't follow that package name.If this new module is for …