Note that, unlike beans, there is no setter method.
注意,与Bean 不同,这里没有setter方法。
Listing 7 shows some of the constants and a setter method.
清单7显示了一些常量和setter方法。
There is also a setter method for the orderService reference.
这儿同样有一个orderService引用的setter方法。
Using a private field and annotating the setter method is considered a best practice.
使用私有字段并注释setter方法被视为最佳做法。
It's not there because I didn't provide the name field with the getter and setter method.
它不在这里,因为我没有通过getter和setter方法提供name字段。
In this case, the name of the field or setter method is used to determine the name of the property.
在这种情况下,字段或setter方法的名称用于确定属性的名称。
Dependency injection can occur in a variety of ways, for example, via a setter method or a class variable.
依赖性的引入可以以多种方式出现,例如,通过设置属性值的方法或者类变量。
Dependency injection can occur in a variety of ways, such as through a setter method or a class variable.
依赖项注入可以通过多种方式进行,例如通过setter方法或类变量。
The AddressStore class provides a getter and a setter method for retrieving data from the properties file.
AddressStore类提供了getter和setter方法从属性文件中检索数据。
In the FailTask_Deser class, the name field setter method is used to set the name value of the deserialized FailTask object.
在failtask_deser类中,name字段setter方法用于设置反序列化的FailTask对象的name值。
By not exposing a setter method, the code is more concise and also provides the additional benefit of enforcing immutability.
通过不暴露setter方法,代码愈发紧凑并且还提供了域不可修改的额外益处。
The input to this setter method is an array of configuration parameters, which is natively created from the element and its children.
这个setter方法的输入为一个配置参数数组,由元素及其子元素生成。
Type 2 or setter injection, in which the dependent module exposes a setter method which the framework USES to inject the dependency.
类型2设置器注入,使用者暴露一个设置器方法,框架将使用此方法注入依赖项。
When the getter method of the bound property is called it must use the value binding to get the value unless the setter method has set the value already.
在调用绑定属性的getter方法时,除非setter方法已经设置了值,否则getter方法必须用值绑定获得值。
Considering getters and setters: a class that USES a Spring bean needs to provide at least a setter method, which corresponds to the name of the particular bean.
关于getter和setter:使用了Springbean的类至少要有一个setter方法,该方法对应于特定bean的名称。
In an IoC setup, these aspects are normally handled by an IoC container that injects the dependencies into the component by calling a setter method, for example.
在IoC设置中,这些方面通常由一个ioc容器处理,比如,该容器通过调用setter方法将这些依赖项注入组件。
The first (Listing 3) is accomplished by annotating the field, using a property field definition, while the second (Listing 4) does it by annotating the setter method, using a property setter.
第一个(清单3)是通过使用属性字段定义对字段进行注释完成的,而第二个(清单4)是通过使用属性setter对setter方法进行注释实现的。
Each data element has its own individual "getter" and "setter" method.
每个数据元素有自己的“getter”和“setter”方法。
Each data element has its own individual "getter" and "setter" method.
每个数据元素有自己的“getter”和“setter”方法。
应用推荐