Allow resolvable as classname for setFactory()