The `BeanFactory` is not injected (but it is when you run the app in JVM with or without AOT processing).