"on the fly" sentence in programming 是什么意思?

what is mean of "on the fly" sentence in programming?

当我在互联网上阅读文档时,有时我会看到阶段 "on the fly"。例如:"In a typical Java application, you’d expect to write a class that implements CustomerRepository. But that’s what makes Spring Data JPA so powerful: You don’t have to write an implementation of the repository interface. Spring Data JPA creates an implementation on the fly when you run the application." 我不明白什么意思?

有人告诉我吗?那谢谢啦。我来自越南,所以我的英语不好!!

在此上下文中,on the fly 表示 而应用程序正在 运行ning。也就是说,在 运行 时,而不是编译时。

在您的示例中,"on the fly" 表示 "while the program is running"。虽然程序是 运行,但它创建了接口的实现。在运行时,而不是编译时。

再举个例子,当你写一个java swing程序的时候,有时候你需要在用户按下按钮什么的时候给JFrame添加一些组件。您希望手动创建组件,而不是由设计师创建。您可以说您创建组件并将它们动态添加到 JFrame。