Class MultiResourceFinder

    • Field Detail

      • resourceFinders

        private final java.lang.Iterable<? extends ResourceFinder> resourceFinders
    • Constructor Detail

      • MultiResourceFinder

        public MultiResourceFinder​(java.lang.Iterable<? extends ResourceFinder> resourceFinders)
        Parameters:
        resourceFinders - The entries of the "path"
      • MultiResourceFinder

        public MultiResourceFinder​(ResourceFinder... resourceFinders)
        Parameters:
        resourceFinders - The entries of the "path"
    • Method Detail

      • findResource

        @Nullable
        public final Resource findResource​(java.lang.String resourceName)
        Description copied from class: ResourceFinder
        Finds a resource by name and return it as a Resource object.
        Specified by:
        findResource in class ResourceFinder
        Parameters:
        resourceName - Designates the resource; typically structured by slashes ("/") like "com/foo/pkg/Bar.class"
        Returns:
        null if the resource could not be found
      • list

        @Nullable
        public java.lang.Iterable<Resource> list​(java.lang.String resourceNamePrefix,
                                                 boolean recurse)
        Specified by:
        list in class ListableResourceFinder
        Returns:
        All resources who's name starts with the given prefix