Abstract factory kind of function, This class will cache and return the filter requested.


Methods

get (filter)

This method will examine the cache of the filters and check if the requested filter is present. If not it will try to load this filter, when found it is returned. When there is an error and the filter rejects to load an error is thrown.

Parameters

Name Type Description
filter String The name of the filter to get.

Returned Value

Object: The requested filter.