Class responsible for loading resources. Can be extended to change or expand the resolving mechanism. More...
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< IResource > | GetResources (string paths) |
Resolves a path and returns all the matched resources. More... | |
Protected Member Functions | |
virtual IEnumerable< IResource > | DoGetResources (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
|
protectedvirtual |
Resolves a single path to resources.
- Parameters
-
path the 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
-
path the 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
-
paths the path to resolve
- Returns
- the resolved resources
The documentation for this class was generated from the following file:
- Summer.Batch.Common/IO/ResourceLoader.cs