For instance, any class representing a non-empty container would naturally take arguments representing its elements in the constructor.
例如,表示非空容器的任何类在构造函数中必然使用表示其元素的参数。
Next, you see an example of constructor injection and how Geronimo's deployment plans define how the container injects code.
接下来,将看到构造函数注入的示例,以及Geronimo的部署计划定义容器注入代码的方式。
OpenEJB will also support constructor injection, which enables the container to provide various classes and objects at run time.
OpenEJB还将支持构造器注入,从而使得容器可以在运行时提供各种类和对象。
应用推荐