camunda-community-hub / camunda-platform-7-camel

Community Extension to add Apache Camel support for Camunda Platform 7
Apache License 2.0
82 stars 57 forks source link

provide spring boot autoconfiguration #78

Open jangalinski opened 2 years ago

jangalinski commented 2 years ago

see #31

currently, I have to use the spring dependency and add a bean configuration to my app:

@Bean
  fun camel(processEngine:ProcessEngine, camelContext: CamelContext) = CamelServiceImpl().apply {
    setCamelContext(camelContext)
    setProcessEngine(processEngine)

    camelContext.addComponent(CamundaBpmConstants.CAMUNDA_BPM_CAMEL_URI_SCHEME, CamundaBpmComponent(processEngine))
  }

I would love to have en autoconfiguration for this ... it should follow the @EnableCamundaCamel convention and not use the spring-factories config so I can easily choose to enable/disable independent of the jar on my classpath