Use a factory to set an adapter with config