static <T> BeanSupplier<T> of(final Class<T> clazz) {
        return new DefaultBeanSupplier<>(clazz);
    }
Create bean supplier for type.

@param <T>   the type parameter
@param clazz the clazz
@return the bean supplier
core/cas-server-core-util-api/src/main/java/org/apereo/cas/util/spring/beans/BeanSupplier.java