spring-geode/src/main/java/org/springframework/geode/core/util/ObjectAwareUtils.java
/**
	 * Returns a {@link Consumer} capable of initializing an {@link ResourceLoaderAware} {@link Object}
	 * with the given {@link ResourceLoader}.
	 *
	 * The {@link ResourceLoaderAware#setResourceLoader(ResourceLoader)} method is only called on
	 * the {@link ResourceLoaderAware} {@link Object} if the {@link ResourceLoader} is not {@literal null}.
	 *
	 * @param resourceLoader {@link ResourceLoader} set on the {@link ResourceLoaderAware} {@link Object}
	 * by the {@link Consumer}.
	 * @return a {@link Consumer} capable of initializing an {@link ResourceLoaderAware} {@link Object}
	 * with the given {@link ResourceLoader}; never {@literal null}.
	 * @see org.springframework.context.ResourceLoaderAware
	 * @see org.springframework.core.io.ResourceLoader
	 * @see java.util.function.Consumer
	 */
Returns a  Consumer capable of initializing an  ResourceLoaderAware  Object
with the given  ResourceLoader.



@param resourceLoader  ResourceLoader set on the  ResourceLoaderAware  Object
by the  Consumer.
@return a  Consumer capable of initializing an  ResourceLoaderAware  Object
with the given  ResourceLoader; never  null.
Returns a Consumer capable of initializing an ResourceLoaderAware Object with the given ResourceLoader . @param resourceLoader ResourceLoader set on the ResourceLoaderAware Object by the Consumer . @return a Consumer capable of initializing an ResourceLoaderAware Object with the given ResourceLoader ; never null .
public static @NonNull Consumer<Object> resourceLoaderAwareObjectInitializer(@Nullable ResourceLoader resourceLoader) {
		return resourceLoader == null ? NO_OP : target -> {
			if (target instanceof ResourceLoaderAware) {
				((ResourceLoaderAware) target).setResourceLoader(resourceLoader);
			}
		};
	}
public static @ NonNull Consumer < Object > resourceLoaderAwareObjectInitializer ( @ Nullable ResourceLoader resourceLoader ) { return resourceLoader == null ? NO_OP : target -> { if ( target instanceof ResourceLoaderAware ) { ( ( ResourceLoaderAware ) target ) . setResourceLoader ( resourceLoader ) ; } } ; }
Returns a {@link Consumer} capable of initializing an {@link ResourceLoaderAware} {@link Object}
 with the given {@link ResourceLoader}.
Returns a { @link Consumer } capable of initializing an { @link ResourceLoaderAware } { @link Object } with the given { @link ResourceLoader } .