org.springframework.context

Interface ResourceLoaderAware

    • Method Detail

      • setResourceLoader

        void setResourceLoader(ResourceLoader resourceLoader)
        Set the ResourceLoader that this object runs in.

        This might be a ResourcePatternResolver, which can be checked through instanceof ResourcePatternResolver. See also the ResourcePatternUtils.getResourcePatternResolver method.

        Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked before ApplicationContextAware's setApplicationContext.

        Parameters:
        resourceLoader - the ResourceLoader object to be used by this object
        See Also:
        ResourcePatternResolver, ResourcePatternUtils.getResourcePatternResolver(org.springframework.core.io.ResourceLoader)