Add method for setting the resolver to be used

Allow a custom resolver object to be passed in.