Example usage for org.springframework.core.io ResourceLoader getClass

List of usage examples for org.springframework.core.io ResourceLoader getClass

Introduction

In this page you can find the example usage for org.springframework.core.io ResourceLoader getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:org.springframework.cloud.gcp.storage.GoogleStorageProtocolResolver.java

@Override
public void setResourceLoader(ResourceLoader resourceLoader) {
    if (DefaultResourceLoader.class.isAssignableFrom(resourceLoader.getClass())) {
        ((DefaultResourceLoader) resourceLoader).addProtocolResolver(this);
    } else {/*w  ww  . ja v a  2s  .  c  o  m*/
        logger.warn("The provided delegate resource loader is not an implementation "
                + "of DefaultResourceLoader. Custom Protocol using gs:// prefix will not be enabled.");
    }
}