Object factory and method invoker.