Example usage for org.springframework.util Assert isNull

List of usage examples for org.springframework.util Assert isNull

Introduction

In this page you can find the example usage for org.springframework.util Assert isNull.

Prototype

public static void isNull(@Nullable Object object, Supplier<String> messageSupplier) 

Source Link

Document

Assert that an object is null .

Usage

From source file:org.springframework.kafka.config.StreamsBuilderFactoryBean.java

/**
 * Set {@link StreamsConfig} on this factory.
 * @param streamsConfig the streams configuration.
 * @since 2.1.3/*  w w  w  .j av  a2  s  .  c  o  m*/
 */
public void setStreamsConfig(StreamsConfig streamsConfig) {
    Assert.notNull(streamsConfig, STREAMS_CONFIG_MUST_NOT_BE_NULL);
    Assert.isNull(this.properties, "Cannot have both streamsConfig and streams configuration properties");
    this.streamsConfig = streamsConfig;
}

From source file:org.springframework.kafka.config.StreamsBuilderFactoryBean.java

/**
 * Set {@link StreamsConfig} on this factory.
 * @param streamsConfig the streams configuration.
 * @since 2.2/*from  ww w .j ava  2  s. c  o m*/
 */
public void setStreamsConfiguration(Properties streamsConfig) {
    Assert.notNull(streamsConfig, STREAMS_CONFIG_MUST_NOT_BE_NULL);
    Assert.isNull(this.streamsConfig, "Cannot have both streamsConfig and streams configuration properties");
    this.properties = streamsConfig;
}