Codota Logo
ConditionalOnBusEnabled
Code IndexAdd Codota to your IDE (free)

How to use
ConditionalOnBusEnabled
in
org.springframework.cloud.bus

Best Java code snippets using org.springframework.cloud.bus.ConditionalOnBusEnabled (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: eclipse/hawkbit

@ConditionalOnBusEnabled
@ConditionalOnClass({ Schema.class, ProtostuffIOUtil.class })
protected static class BusProtoStuffAutoConfiguration {
  /**
   * 
   * @return the protostuff io message converter
   */
  @Bean
  @StreamMessageConverter
  public MessageConverter busProtoBufConverter() {
    return new BusProtoStuffMessageConverter();
  }
}
origin: org.eclipse.hawkbit/hawkbit-autoconfigure

@ConditionalOnBusEnabled
@ConditionalOnClass({ Schema.class, ProtostuffIOUtil.class })
protected static class BusProtoStuffAutoConfiguration {
  /**
   * 
   * @return the protostuff io message converter
   */
  @Bean
  public MessageConverter busProtoBufConverter() {
    return new BusProtoStuffMessageConverter();
  }
}
origin: spring-cloud/spring-cloud-bus

/**
 * @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);
  }
}

origin: org.springframework.cloud/spring-cloud-bus

/**
 * @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);
  }
}

origin: eclipse/hawkbit

  /**
   *
   * @return the protostuff io message converter
   */
  @Bean
  @ConditionalOnBusEnabled
  MessageConverter busProtoBufConverter() {
    return new BusProtoStuffMessageConverter();
  }
}
origin: org.eclipse.hawkbit/hawkbit-repository-test

  /**
   *
   * @return the protostuff io message converter
   */
  @Bean
  @ConditionalOnBusEnabled
  MessageConverter busProtoBufConverter() {
    return new BusProtoStuffMessageConverter();
  }
}
origin: spring-cloud/spring-cloud-bus

@ConditionalOnBusEnabled
@EnableBinding(SpringCloudBusClient.class)
@EnableConfigurationProperties(BusProperties.class)
origin: org.springframework.cloud/spring-cloud-bus

@ConditionalOnBusEnabled
@EnableBinding(SpringCloudBusClient.class)
@EnableConfigurationProperties(BusProperties.class)
org.springframework.cloud.busConditionalOnBusEnabled

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now