SCA provides the ability to "autowire" components.
SCA提供了 “自动连接” 组件的能力。
Spring has an autowire mode, but most examples fail to use it.
Spring具有自动连线(autowire)方式,但大多数示例都没有使用它。
You could even use default-autowire at the element level to have autowiring across the entire file.
你甚至可以使用在元素层次使用default-autowire来在整个文件使用autowiring。
This appendix has been written to explain the usage of Spring autowire mechanism, described in Back to Spring section.
“回到Spring”部分描述了Spring的自动装配机制,该附录对自动装配机制的用法做进一步的阐述。
The only task this interceptor needs to perform is to pass the loaded entity to the autowire method of the RichDomainObjectFactory.
该拦截器需要做的唯一一件事就是将加载的实体传递给RichDomainObjectFactory的autowire方法。
In the sample application the Person companion object is implemented as follows in order to 'automagically' provide autowire functionality.
对于该示例应用,我们采用如下方式实现Person对象以便“自动”提供自动装配功能。
Note that PicoContainer automatically wires obvious relationships like these, and Spring can, too, but most users don't use the autowire option.
注意,PicoContainer自动连接这种显式关系,Spring也可以,但大多数用户不使用它的自动连线选项。
The easiest but rather clumsy way to autowire entities that are instantiated in application code would be to autowire them explicitly by means of the RichDomainObjectFactory.
要想自动装配应用代码中实例化的实体,最简单也是最笨的办法就是通过RichDomainObjectFactory的方式显式进行自动装配。
To use this service in an application, all we need to do is to use Spring's autowire mechanism and annotate fields where this bean should be injected with @Autowired annotation.
要在应用中使用该服务,我们只需利用Spring的自动装配(autowire)机制,在需要注入该服务的属性上使用@Autowired注解就可以了。
In other words, prior to Spring 2.5, it has not been possible to autowire a specific subset of an object's setter methods or to autowire some of its properties by type and others by name.
换句话说,Spring2.5之前还不可能自动装配某个对象setter方法的特定子集,或者通过类型或名字来自动装配它的一些属性。
In other words, prior to Spring 2.5, it has not been possible to autowire a specific subset of an object's setter methods or to autowire some of its properties by type and others by name.
换句话说,Spring2.5之前还不可能自动装配某个对象setter方法的特定子集,或者通过类型或名字来自动装配它的一些属性。
应用推荐