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:
-
resourceAnyThe denormalized resource.
prefetch
(
-
resource -
cache
Retrieve a set of resources.
Parameters:
-
resourceResource[]The denormalized resource.
-
cacheCacheThe 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.
