Package io.camunda.zeebe.spring.client
Class CamundaAutoConfiguration
java.lang.Object
io.camunda.zeebe.spring.client.CamundaAutoConfiguration
@Configuration
@ImportAutoConfiguration({ZeebeClientProdAutoConfiguration.class,ZeebeClientAllAutoConfiguration.class,OperateClientProdAutoConfiguration.class,ZeebeActuatorConfiguration.class,MetricsDefaultConfiguration.class,ConnectorConfiguration.class})
@AutoConfigureAfter(org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration.class)
public class CamundaAutoConfiguration
extends Object
Enabled by META-INF of Spring Boot Starter to provide beans for Camunda Clients
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.camunda.zeebe.client.api.JsonMapperjsonMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Registering a JsonMapper bean when there is none already exists inBeanFactory.zeebeLifecycleEventProducer(io.camunda.zeebe.client.ZeebeClient client, org.springframework.context.ApplicationEventPublisher publisher)
-
Field Details
-
DEFAULT_OBJECT_MAPPER
public static final com.fasterxml.jackson.databind.ObjectMapper DEFAULT_OBJECT_MAPPER
-
-
Constructor Details
-
CamundaAutoConfiguration
public CamundaAutoConfiguration()
-
-
Method Details
-
zeebeLifecycleEventProducer
@Bean @ConditionalOnMissingBean(io.camunda.zeebe.spring.client.testsupport.SpringZeebeTestContext.class) public ZeebeLifecycleEventProducer zeebeLifecycleEventProducer(io.camunda.zeebe.client.ZeebeClient client, org.springframework.context.ApplicationEventPublisher publisher) -
jsonMapper
@Bean(name="zeebeJsonMapper") @ConditionalOnMissingBean public io.camunda.zeebe.client.api.JsonMapper jsonMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper) Registering a JsonMapper bean when there is none already exists inBeanFactory. NOTE: This method SHOULD NOT be explicitly called as it might lead to unexpected behaviour due to theConditionalOnMissingBeanannotation. i.e. Calling this method when another JsonMapper bean is defined in the context might throwNoSuchBeanDefinitionException- Returns:
- a new JsonMapper bean if none already exists in
BeanFactory
-