Changed RunnableApplicationContextFactory to an interface