org.springframework.core.io.support

Interface ResourcePatternResolver

    • Field Detail

      • CLASSPATH_ALL_URL_PREFIX

        static final java.lang.String CLASSPATH_ALL_URL_PREFIX
        Pseudo URL prefix for all matching resources from the class path: "classpath*:" This differs from ResourceLoader's classpath URL prefix in that it retrieves all matching resources for a given name (e.g. "/beans.xml"), for example in the root of all deployed JAR files.
        See Also:
        ResourceLoader.CLASSPATH_URL_PREFIX, Constant Field Values
    • Method Detail

      • getResources

        Resource[] getResources(java.lang.String locationPattern)
                         throws java.io.IOException
        Resolve the given location pattern into Resource objects.

        Overlapping resource entries that point to the same physical resource should be avoided, as far as possible. The result should have set semantics.

        Parameters:
        locationPattern - the location pattern to resolve
        Returns:
        the corresponding Resource objects
        Throws:
        java.io.IOException - in case of I/O errors