若要轻易地获取数据并将其传给视图,则其中一个关键是我们需要传递“一个”对象(而且不是匿名类型)到视图。
ONE of the keys for getting data easily to a view is that we need to send ONE object (and not an anonymous type) to the view.
这时,将从相似对象池中获取一个适当类型的处理程序并对其进行配置用于处理请求。
At this point, a handler of the proper type is picked up from a pool of similar objects and configured to process the request.
因此,需要从应用程序获取classloader类型的对象。
So you need to get an object of type ClassLoader from the application.
在有了ServletContext接口提供的两个可用的日志记录方法之后,剩下的关键是获取一个对servletcontext类型的对象的引用。
After both logging methods are made available through the ServletContext interface, the key is to obtain a reference to an object of type ServletContext.
通过响应对象,您可以获取页面的任何元素,比如链接、applets、表单、选择、复选框、输入类型、表格、图像,等等。
From the response object you can obtain any element (s) of the page, such as links, applets, form, select, check box, input types, tables, images, and so on.
如您所见,SOAP:Amazon:S3没有获取元数据,因此您不能看到对象的内容类型等。
As you can see, SOAP: : Amazon: : S3 doesn't get the metadata, so you can't see the object's content type, for instance.
图5和清单22 中显示的TypeGetter类负责从Configuration对象中获取特定类型的配置字段
The TypeGetter class, illustrated in Listing 5 and Figure 22, is responsible for retrieving a configuration field of a particular type from a Configuration object
为了从对象池获取对象,需要提供一个范围类型和一个范围键。
To retrieve an object from the object pool, provide a scope type and a scope key.
像我们前面讨论过的流控制对象一样,有多种方法可以获取对servletcontext类型的对象的引用。
As we discussed in the previous section on flow control objects, there are several ways to do this.
当然,但是您将很快看见,在2.4.4,字节缓冲区对象拥有一大堆方便的方法,作为别的基本数据类型用来获取和存放缓冲区内容。
Sure, but as you'll soon see in Section 2.4.4, ByteBuffer objects possess a host of convenience methods for getting and putting the buffer content as other primitive data types.
在运行时获取图属性,需要强制图对象转换到特定类型,如下例所示。
At runtime, to access a diagram's properties, it's required to cast your instance of a diagram object to a specific type, as the following example demonstrates.
获取与指定(基类)类型关联的对象。
Gets the object associated with the specified (base-class) type.
属性对象类型可能在六个低序位位置上获取位。
The property object type may take bits in the six low order positions.
获取与指定的基类类型关联的对象。
Gets the object associated with the specified, base-class, type.
获取或设置要创建的对象的数据类型。
在派生类中重写时,获取此对象所表示的适配器的类型。
When overridden in a derived class, gets the type of adapter this object represents.
获取一个值,该值指示此转换器是否可将一个对象转换为转换器的本机类型。
Gets a value indicating whether this converter can convert an object to the native type of the converter.
获取一个值,该值指示此转换器能否使用上下文将对象转换为给定的目标类型。
Gets a value indicating whether this converter can convert an object to the given destination type using the context.
设置或获取表示编程类型的对象。
在HTTP请求过程中,该对象会从浏览器或客户端设备中获取信息,以便让您的应用程序知道浏览器或客户端设备提供的支持类型和级别。
This object gets information from the browser or client device during an HTTP request, telling your application the type and level of support the browser or client device offers.
使用此方法可请求从通道堆栈的适当层返回一个类型化对象,如用于设置属性或获取状态的接口。
Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel stack.
使用此方法可请求从通道堆栈的适当层返回一个类型化对象,如用于检索属性或获取状态的接口。
Use this to request a typed object such as an interface for retrieving properties or getting status from the appropriate layer in the channel stack.
使用此方法可请求从绑定元素堆栈的适当层返回一个用于设置属性或获取状态的类型化对象。
Use this to request a typed object for setting properties or getting status from the appropriate layer in the binding element stack.
使用此方法可请求从通道侦听器堆栈的适当层返回类型化对象,如用于设置属性或获取状态的接口。
Use this to request a typed object such as an interface for setting properties or getting status from the appropriate layer in the channel listener stack.
获取或设置一个值,该值指示该项是否是静态定义的,即:该项是对此对象类型的所有实例通用,还是只对此对象可用。
Gets or sets a value indicating whether or not the item is statically defined, that is, if the item is common to all instances of this object type or only to this object specifically.
获取给定类型或对象的自定义类型说明符。
获取一个值,该值指示转换器是否可以将指定源类型的对象转换为转换器的本机类型。
Gets a value indicating whether the converter can convert an object of the specified source type to the native type of the converter.
检索对象的类型信息,然后可以使用该信息获取接口的类型信息。
Retrieves the type information for an object, which can be used to get the type information for an interface.
获取集合对象的数据类型。
检索对象的类型信息,然后可以使用该信息获取接口的类型信息。
Retrieves the type information for an object, which can then be used to get the type information for an interface.
应用推荐