Create generator method, build up the application constructor.