public static <T> T getBean(String beanName, Class<T> clazz, T defaultObj) {
		if (!StringUtils.hasLength(beanName)) {
			return defaultObj;
		}
		Object obj = BEANS_CACHE.get(beanName);
		if (null == obj) {
			return defaultObj;
		}
		if (clazz.isAssignableFrom(obj.getClass())) {
			return (T) obj;
		}
		return defaultObj;
	}
Gets the beans configured in the configuration file.

@author junboXiang
spring-cloud-alibaba-starters/spring-cloud-starter-stream-rocketmq/src/main/java/com/alibaba/cloud/stream/binder/rocketmq/custom/RocketMQBeanContainerCache.java