不良习惯:根本没有错误处理代码。
问题就是必须处理代码重入。
您可以同时在多个位置处理代码。
定义一个定制事件后,就可以在事件处理代码中使用它。
Once you define a custom event, you can use it in your event processing code.
也可以将错误处理代码放入索引器自身内部。
You can also put the error handling code inside the indexer itself.
这样,我们已经完成了这个示例应用程序的转换处理代码!
And with that we're done with the conversion processing code for the example application!
现在我们已经绑定了输出数据,将添加一些事件处理代码。
Now that we have bound the output data, we will add some action handling code.
可以轻松添加异常处理代码,以增加程序的可靠性。
Exception-handling code can be easily added to increase program reliability.
中断处理核心的中断处理代码总是与微处理器结构相关。
Interrupt HandlingThe kernel's interrupt handling code is almost all microprocessor (and often platform) specific.
您无法捕捉堆栈溢出异常,因为异常处理代码可能需要堆栈。
You cannot catch stack overflow exceptions, because the exception-handling code may require the stack.
这些指令被翻译成二进制代码,这是计算机容易处理的一种形式。
The instructions are translated into binary code, a form that computers can easily handle.
注意:生产代码可以处理对数组内不存在的属性的请求。
Note: Production code should handle requests for attributes that do not exist in the array.
您需要编写代码来处理这种情况。
今后您需要在代码中处理这个问题。
此外,您必须手动编写代码以处理消息的有效负载。
Moreover, you must write code manually to deal with the payload of a message.
禁止它是因为在集成中没有处理这个动作的代码。
This is disabled because there is no code in the integration that processes this action.
同样,它可以使用更复杂的代码处理多个变量。
Similarly, it can process multiple variables using more complex code.
有多少代码是在处理真正的问题?
编写实际用于处理消息的中介代码。
样例代码可以非常优雅地处理这个问题。
我们还需要添加代码来处理输出。
任何时候消息到达时,都将调用代码块来处理消息。
Whenever a message arrives, the block of code is invoked to handle the message.
您不需要编写任何关于事件处理的代码就可以创建这样的组件。
You can create such a component without writing a single line of event-handling code.
下一个代码片段将处理DSL。
该处理程序的代码如 清单6 中所示。
下面看看处理请求的服务器代码。
接下来,您将学习怎样处理这些代码。
下面是这个JSP代码中处理搜索功能的部分。
可以修改代码来处理自定义QuickPlace页面。
在portlet类中编辑事件代码以处理事件
Modify the event code in the portlet class to process the event
应用推荐