org.zodiac.sentinel.base.datasource.AbstractDataSourceOption Maven / Gradle / Ivy
package org.zodiac.sentinel.base.datasource;
import java.util.Objects;
public abstract class AbstractDataSourceOption implements DataSourceOption {
private static final long serialVersionUID = -1635014749451948788L;
private final DataSourceType dataSourceType;
protected AbstractDataSourceOption(DataSourceType dataSourceType) {
this.dataSourceType = Objects.requireNonNull(dataSourceType, "dataSourceType");
}
@Override
public final DataSourceType getDataSourceType() {
return dataSourceType;
}
}