Summer.Batch.Common.IO.ResourceLoader Class Reference

Class responsible for loading resources. Can be extended to change or expand the resolving mechanism. More...

Inheritance diagram for Summer.Batch.Common.IO.ResourceLoader:
Summer.Batch.Extra.IO.GdgResourceLoader

Public Member Functions

IResource GetResource (string path)
 Resolves a path as a single resource. If the path matches several resources, one is returned arbitrarily. More...
 
IList< IResourceGetResources (string paths)
 Resolves a path and returns all the matched resources. More...
 

Protected Member Functions

virtual IEnumerable< IResourceDoGetResources (string path)
 Resolves a single path to resources. More...
 

Detailed Description

Class responsible for loading resources. Can be extended to change or expand the resolving mechanism.

This base implementation only supports file system resources. A path can start with the file URI protocol ('file://'), or with no URI protocol at all.

Several paths can be resolved at the same time, by separating them using Path.PathSeparator. Paths can also contain the '?', '*', and '**' wildcards (see AntPathResolver).

Member Function Documentation

virtual IEnumerable<IResource> Summer.Batch.Common.IO.ResourceLoader.DoGetResources ( string  path)
protectedvirtual

Resolves a single path to resources.

Parameters
paththe path to resolve
Returns
the matched resources

Reimplemented in Summer.Batch.Extra.IO.GdgResourceLoader.

IResource Summer.Batch.Common.IO.ResourceLoader.GetResource ( string  path)

Resolves a path as a single resource. If the path matches several resources, one is returned arbitrarily.

Parameters
paththe path to resolve
Returns
the resolved resource, or null if no resources were matched
IList<IResource> Summer.Batch.Common.IO.ResourceLoader.GetResources ( string  paths)

Resolves a path and returns all the matched resources.

Parameters
pathsthe path to resolve
Returns
the resolved resources

The documentation for this class was generated from the following file:
  • Summer.Batch.Common/IO/ResourceLoader.cs