First, the servlet creates an instance of the view bean, GetErrandListHTMLView, passing the errand list as a parameter on the constructor.
首先,servlet创建一个视图bean实例GetErrandListHTMLView,将差事列表作为参数传递给构造函数。
Incorrect objects: Using the address, it is possible to check that methods are being invoked on the desired object by matching to the address on the constructor call for that object.
错误对象:使用地址,通过与对象的构建函数调用的地址进行比对,可以检查出是不是在正确的对象上调用方法。
This parameter is passed on the object constructor to mandate that it is set.
此参数在对象构造函数上传递,以强制设置该参数。
Now we don't depend on external global objects, just on the instances passed in the constructor.
现在我们不依赖于外部的全局对象,只是通过构造函数传递对象实例。
This allows the text to be omitted on the component's constructor and for internationalization translations to occur.
这允许在组件的构造器中省略该文本,以便进行国际化转换。
For example, you could have multiple occurrences of the tag based on the CacheCommand constructor for your service.
例如,以您的服务的CacheCommand构造函数为基础,可能会出现大量的标签。
Happily, you can accomplish many soft RT goals with WebSphere Real Time without ever needing to call the constructor on a NHRT.
令人高兴的是,您可以使用WebSphereRealTime完成许多软rt目标,无需在NHRT上调用构造方法。
By passing the list on to the constructor, we can easily add the same list to both a LinkedHashSet and a plain HashSet.
通过将list传递到构造函数,我们可以很轻松地将相同的list添加到LinkedHashSet和简单的HashSet中。
You can turn on namespace awareness in the constructor, but I rarely do.
您在构造函数中启用名称空间感知,但我很少这样做。
To avoid this problem, complex attributes should be initialized in the constructor; however, this is not necessary for simple attributes such as strings, booleans, and so on.
为了避免这个问题,应当在构造函数中初始化复杂属性;然而,对于字符串、布尔值等简单属性则不需要这样做。
If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.
如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。
Only the parent and style are set in the constructor; all other properties are set on the created object.
只有父控件和样式是在构造函数中设置的,其他所有属性都是在已创建的对象上设置的。
For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
On approximately 200,000 instances of generic constructor invocations, both algorithms predicted the correct result approximately 90 percent of the time.
在大约200,000个通用构造函数调用的实例上,两种算法大约90%的时候都可以预测到结果。
Internally, Scope relies on a thread-static field to store the Stack of instances supplied to Scope's constructor.
在内部,Scope依赖线程静态字段存储提供给Scope构造函数的实例的Stack。
On the other hand, the bug could be fixed by rewriting the single-argument constructor as follows.
另一方面,可以照下面的方法重写单参数构造器来修复错误。
Our ACL class in Listing 8a features a public constructor accepting the securedResource, the ACLHolder that the ACL protects, and utility methods that operate on the ACL's internal grants structure.
清单8a 中的ACL类提供了一个公共构造函数,用于接收securedResource,即 ACL保护的ACLHolder;还提供了实用方法,对 ACL的内部授权结构进行操作。
On the other hand, the complex algorithm yields Box, because that is the most specific type it can infer using the constructor arguments.
另一方面,复杂算法产生Box,因为这是使用构造函数参数可以推断的最具体类型。
The ResourceManager class will load the resource files based on the system default locale or you could specify the locale in the constructor.
ResourceManager类将根据系统默认地区或您在构造函数中指定的地区来装载资源文件。
If you don't define a constructor in a child class, the parent constructor is transparently invoked on your behalf.
如果在子类中不定义构造函数,则parent构造函数代表您被显式调用。
The creator of this GBean (that is, whoever fires the constructor on this class) must provide a reference to a Customer object.
这个GBean的创建者(也就是触发这个类中的构造函数的人)必须提供一个到Customer对象的引用。
The constructor for the SelectionListener implementation accepts a Boolean variable that defines whether the tree items are to be expanded or collapsed, depending on which button is selected.
SelectionListener实现的构造函数接受一个布尔变量,该变量定义要展开还是折叠树项目,具体取决于选中了哪个按钮。
For each parameter that has a dependency on other parameters, add a PatternDependencyDelegate statement to the constructor of the parameter's dependency inner class (see Listing 3). In this case.
对于每个依赖于其他参数的参数而言,要为参数内部依赖类的构造函数增加PatternDependencyDelegate声明(参看列表3)。
The primary constructor for RadioButtonWithCallbacks takes three parameters: an on state (true or false), a label, and a list of callbacks.
RadioButtonWithCallbacks的主构造函数接受3个参数,一个开关状态(真或假),一个标签,以及一个回调函数例表。
This constructor allows you to specify the local IP address and port number on which to listen for incoming connection attempts.
此构造函数允许指定本地IP地址和用于侦听传入的连接尝试的端口号。
The constructor function begins on line 12.
构造函数从第12行开始。
Be aware that any class constructor code will run on the first thread in the first context that accesses the field.
请注意,任何类构造函数代码都将在访问该字段的第一个上下文中的第一个线程上运行。
A type that implements interfaces does not necessarily expose a constructor, and depending on the access level of a constructor, the code within the generic type might not be able to access it.
实现接口的类型不必公开构造函数,并且受构造函数的访问级别限制,泛型类型中的代码可能无法访问该构造函数。
Today is on its own instead of getting it in the constructor.
“今天”应直接得到,而不需要使用构造来得到。
Today is on its own instead of getting it in the constructor.
“今天”应直接得到,而不需要使用构造来得到。
应用推荐