现在,我们通过编写一个用于修改消息的简单中介处理程序将这一概念付诸实践;我们使用该中介来执行一个简单的文本消息的搜索和替换操作。
We will now put this concept into practice by writing a simple mediation handler to modify messages; the mediation will perform a simple search and replace of text messages.
修改代码后,就可以通过改变端点来实现在JMS和http端点url之间的替换。
After modifying the code, you can alternate between the JMS and HTTP endpoint URLs by changing the endpoint.
修改JMenuBar没有这么容易;没有从工具栏上删除和替换单个菜单的接口。
It's not as easy to modify a JMenuBar; there's no interface for removing or replacing individual menus from the bar.
应用推荐