中介框架将调用处理程序的handle方法。
The mediation framework will invoke the handle method of the handler.
调用处理程序类是处理所有数据验证逻辑的地方。
The invocation handler class is where all of the data validation logic is handled.
验证过程的细节现在完全由调用处理程序来处理。
The details of the validation process are now handled entirely by the invocation handler.
总体来说,我要建立一个执行验证规则的客户调用处理程序。
Conceptually, I'll create a custom invocation handler class that performs the validation rules.
在调用处理程序后,您可以确定哪个控件引发了事件。
When your handler is called, you can determine which control caused the event.
下一步是把业务对象实现指定给调用处理程序的构造函数。
The next step is to specify a business object implementation to the constructor of the invocation handler.
调用处理程序类必须知道如何处理所有接口类型的方法调用。
The invocation handler class must know how to deal with method invocations of all the interface types.
signal语句用于显式地发出一个错误并强制调用处理程序。
The SIGNAL statement is used to explicitly raise an error and force the invocation of a handler.
调用处理程序类还会把方法调用委托到真正的实现类,以便处理核心业务逻辑。
The invocation handler class will also delegate method calls to a real implementation class in order to process the core business logic.
调用处理程序中会包含一个实际的实现类的实例,把它作为实例变量。
The invocation handler will contain an instance of a real implementation class as an instance variable.
我前面建立的简单调用处理程序可以用于任何方法前和方法后的调用处理。
The simple invocation handler I built could be used for any pre - and post-method invocation processing.
还可以重构调用处理程序,让它处理其他横跨不同对象类型的方法调用的操作。
The invocation handler could also be refactored to handle other operations across multiple method invocations on different object types.
我还建立了UserImpl实现类的新实例,并把实例传递给调用处理程序。
I've also created a new instance of the UserImpl implementation class and passed it to the invocation handler.
您可以看到,调用处理程序的这种实现,利用了通用的验证器服务,与清单3里相同。
As you can see, this implementation of the invocation handler makes use of a generic validator service, the same as in Listing 3.
对代理类的方法调用,被分配给调用处理程序,而调用处理程序是在代理类生成的时候指定的。
Method invocations on a proxy class are dispatched to an invocation handler that is specified when the proxy class is generated.
如图3所示,可以构造提供程序来扮演实现Runnable接口的异步调用处理程序的角色。
As Figure 3 shows, the provider can be constructed to play a role of an asynchronous invocation handler that implements the Runnable interface.
我还建立了一个专门的调用处理程序,它维持了一个Map,在映射里,键是属性名称,值是属性的值。
I also create a specialized invocation handler that holds on to a Map where the key is the property name, and the value is the value of the property.
作为替代解决方案,我建立一个看起来很像清单2的调用处理程序,而验证代码直接在调用处理程序里运行。
For an alternative solution, I could have created an invocation handler that looks more like the one from Listing 2, where the validation code is run directly in the invocation handler.
用于派生我们的处理程序的GenericHandler具有调用处理程序时由SOAP运行时调用的方法。
The GenericHandler from which we derived our handler has methods that are invoked by the SOAP runtime when a handler is called.
出于本示例的需要,我会采用不受验证限制的方式实现User接口,因为验证逻辑是在调用处理程序中处理的。
For the purpose of this example I'll use a validation-free implementation of the User interface, because the validation logic is being handled in the invocation handler.
清单4显示了一个调用处理程序,它没有绑定到任何具体的业务对象,这样就能把它用于任何需要被验证的业务对象。
Listing 4 shows an invocation handler that is not tied to any specific business object, and could therefore be used along with any business object that needs to be validated.
另外一个您可以在处理程序链上设置的的策略:处理程序链可以根据soap头最外层的元素的qname调用处理程序。
Another possible policy you can set on the handler chain: a handler chain can invoke a handler based on the qname of the outermost element of a SOAP header.
清单6显示了如何为User接口建立动态代理(用userimpl实现类),同时通过调用处理程序传递所有的方法调用。
Listing 6 shows how to create a dynamic proxy class for the User interface (using the UserImpl implementation class), while passing all method invocations through the invocation handler.
可以用一个内容处理程序来处理这两种情况,但每次解析器调用处理程序时,都需要进行一次检查,以查看到底是哪一种情况需要被处理。
You can have one content handler that handles both cases, but this requires a check to see which case needs to be handled each time the parser invokes the handler.
现在,当客户端的服务请求触发JAAS回调处理程序序列时,WebSphereApplicationServer将调用处理程序实例(步骤4)。
Now the handler instance is ready to be invoked by WebSphere Application Server when the JAAS callback handler sequence is triggered by a service request in the client (Step 4).
egl用处理程序部分提供UI,并将此UI绑定到从此ui中调用并返回给此UI的那些事件。
The handler part is used by EGL to provide a UI and bind the UI to events that are called from and returned to the UI.
但它不调用应用处理程序;它只将其自身限于打印已识别的XPath。
It does not call into the application handler though; it limits itself to printing recognized XPaths.
一般而言,当过程进行到接受状态时,希望对给定的XPath调用应用处理程序。
Typically when the process reaches an accepting state, you will want to call the application handler for the given XPath.
XPathHandler充当代理,以将调用中的SAX事件(起始元素、结束元素等事件)转换成应用处理程序。
XPathHandler acts as a proxy to translate SAX events (start element, end element, and the like) in calls to the application handler.
编译器创建这些方法,它们调用应用处理程序中的正确方法。
The compiler creates these methods that call the appropriate method in the application handler.
应用推荐