@ConditionalOnBusEnabled @ConditionalOnClass({ Schema.class, ProtostuffIOUtil.class }) protected static class BusProtoStuffAutoConfiguration { /** * * @return the protostuff io message converter */ @Bean @StreamMessageConverter public MessageConverter busProtoBufConverter() { return new BusProtoStuffMessageConverter(); } }
@ConditionalOnBusEnabled @ConditionalOnClass({ Schema.class, ProtostuffIOUtil.class }) protected static class BusProtoStuffAutoConfiguration { /** * * @return the protostuff io message converter */ @Bean public MessageConverter busProtoBufConverter() { return new BusProtoStuffMessageConverter(); } }
/** * @author Spencer Gibb * @author Dave Syer * @author Donovan Muller * @author Stefan Pfeiffer */ @Configuration @ConditionalOnBusEnabled @ConditionalOnClass({ RefreshBusEndpoint.class, ObjectMapper.class }) @AutoConfigureBefore({ BusAutoConfiguration.class, JacksonAutoConfiguration.class}) public class BusJacksonAutoConfiguration { // needed in the case where @RemoteApplicationEventScan is not used // otherwise RemoteApplicationEventRegistrar will register the bean @Bean @ConditionalOnMissingBean(name = "busJsonConverter") @StreamMessageConverter public AbstractMessageConverter busJsonConverter(@Autowired(required = false) ObjectMapper objectMapper) { return new BusJacksonMessageConverter(objectMapper); } }
/** * @author Spencer Gibb * @author Dave Syer * @author Donovan Muller * @author Stefan Pfeiffer */ @Configuration @ConditionalOnBusEnabled @ConditionalOnClass({ RefreshBusEndpoint.class, ObjectMapper.class }) @AutoConfigureBefore({ BusAutoConfiguration.class, JacksonAutoConfiguration.class}) public class BusJacksonAutoConfiguration { // needed in the case where @RemoteApplicationEventScan is not used // otherwise RemoteApplicationEventRegistrar will register the bean @Bean @ConditionalOnMissingBean(name = "busJsonConverter") @StreamMessageConverter public AbstractMessageConverter busJsonConverter(@Autowired(required = false) ObjectMapper objectMapper) { return new BusJacksonMessageConverter(objectMapper); } }
/** * * @return the protostuff io message converter */ @Bean @ConditionalOnBusEnabled MessageConverter busProtoBufConverter() { return new BusProtoStuffMessageConverter(); } }
/** * * @return the protostuff io message converter */ @Bean @ConditionalOnBusEnabled MessageConverter busProtoBufConverter() { return new BusProtoStuffMessageConverter(); } }
@ConditionalOnBusEnabled @EnableBinding(SpringCloudBusClient.class) @EnableConfigurationProperties(BusProperties.class)
@ConditionalOnBusEnabled @EnableBinding(SpringCloudBusClient.class) @EnableConfigurationProperties(BusProperties.class)