com.ideaaedi.extspringcache.support.EmptyObjectProvider Maven / Gradle / Ivy
The newest version!
package com.ideaaedi.extspringcache.support;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.ObjectProvider;
/**
* 空实现
*
* @author JustryDeng
* @since 2020/11/9 21:51:19
*/
@SuppressWarnings("NullableProblems")
public class EmptyObjectProvider implements ObjectProvider {
@Override
public T getObject(Object... args) throws BeansException {
return null;
}
@Override
public T getIfAvailable() throws BeansException {
return null;
}
@Override
public T getIfUnique() throws BeansException {
return null;
}
@Override
public T getObject() throws BeansException {
return null;
}
}