org.springframework.core.io.support

Interface PropertySourceFactory

    • Method Detail

      • createPropertySource

        PropertySource<?> createPropertySource(@Nullable
                                               java.lang.String name,
                                               EncodedResource resource)
                                        throws java.io.IOException
        Create a PropertySource that wraps the given resource.
        Parameters:
        name - the name of the property source
        resource - the resource (potentially encoded) to wrap
        Returns:
        the new PropertySource (never null)
        Throws:
        java.io.IOException - if resource resolution failed