Fetcher Class
A fetcher is an object for handling resouces during the prefetching
prefetch process. A fetcher must include a type
and normalize and
prefetch implementations.
Methods
normalize
(
-
resource
Normalizes a resource not following the convention.
Parameters:
-
resource
AnyThe denormalized resource.
prefetch
(
-
resource
-
cache
Retrieve a set of resources.
Parameters:
-
resource
Resource[]The denormalized resource.
-
cache
CacheThe cache to populate.
Properties
type
String
While prefetching resources, each resource has a type
. The resource
is handled by the fetcher whose type
match it.