Note that, unlike beans, there is no setter method.
注意,与Bean 不同,这里没有setter方法。
There is also a setter method for the orderService reference.
这儿同样有一个orderService引用的setter方法。
Listing 7 shows some of the constants and a setter method.
清单7显示了一些常量和setter方法。
One thread calls the setter method and the other thread calls the retrieval method.
一个线程称为setter方法,另一个线程称为retrieval方法。
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方法必须用值绑定获得值。
This method sets the attributes of the formBean with the appropriate getter and setter methods, as shown below using the object instance returned from the model
这一方法和适当的getter和setter方法一同设置 formBean的属性,如下所示,其中使用从模型返回的对象实例
The error occurs because I'm trying to call the toString() method on the appointment instance before the rest of the fluent-interface setter methods are called.
出现错误的原因在于,我试图在连贯接口setter方法被调用之前调用appointment实例上的toString()方法。
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的名称。
A service invocation can be used to transfer data, which is equivalent to invoking a setter method, but that's forcing the data transfer into the RPC paradigm.
可以通过服务调用来传输数据,这等同于调用setter方法,但是使数据传输到rpc范型中。
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方法将这些依赖项注入组件。
You'll notice that despite the lack of explicitly-defined setter methods in the class definition, XJConf was still able to configure the object's properties through the __set method.
您将注意到,尽管类定义中缺少显式定义的setter方法,XJConf仍然能够通过__set方法配置对象的特性。
As Figure 1 reveals, the only place the setter method is called is in the getter to formulate the title of the seminar, a combination of the course number, seminar number, and course name.
如图1所示,唯一要调用setter方法的地方是在getter中来表示由课程号、研习班号和课程名称组成的研习班的标题。
Method chaining works best for the creation of simple data objects, yet here I'm using it both for the setter methods on Appointment and in AppointmentCalendar to start the method chain.
方法链接对于简单数据对象的创建最有效,但是这里我同时为Appointment上和AppointmentCalendar中的setter方法启用方法链接。
It includes getter and setter methods for all the participant parameters, and it includes validation logic to ensure that all the required parameters for that particular method call are present.
它针对所有participant参数包含了getter和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方法进行注释实现的。
You must have a setter and getter method for network-transfer fields.
您必须具有用于网络传输字段的setter和getter方法。
You must have a setter and getter method for the fields that need to transfer over the network.
您必须具有用于需要在网络上传输的字段的setter和getter方法。
Each data element has its own individual "getter" and "setter" method.
每个数据元素有自己的“getter”和“setter”方法。
Spring supports three types of dependency injection — setter, constructor, and method injection — but overall, the prevailing model is setter injection.
Spring支持三种依赖注入——setter、构造函数和方法注入——但总的来说,最流行的模型是setter注入。
And also fairly common is the need to interfere with this method for validation or that property setter to update another one.
分部方法另外一个经常被用到的地方是验证,或者让属性的setter去更新另一个属性。
应用推荐