Precondition tests are handled by before advice, which is executed just before the corresponding method execution join point.
前置条件测试由before建议处理,该建议就在对应的方法执行连接点之前执行。
It would also be necessary to use Around advice (an interceptor) rather than Before advice, because EJB 3.0 does not offer specialized advice types.
同样有必要使用Around通知(拦截器)而不是Before通知,因为EJB3.0没有提供特殊的通知类型。
The downside is loss of conciseness, as can be seen from the additional call to proceed with the original method invocation visible in Figure 4, which would not be necessary with a before advice.
不好的一面是它损失了简洁性,这一点可以从需要进行额外的调用才能继续执行原来的方法调用(如图4所示)看得出来,而如果用before进行通知,这一点就是不必要的。
Anyone with heart, lung, or circulation problems should seek medical advice before flying.
任何有心、肺或血液循环问题的人都应该在飞行前寻求医生建议。
Do people who choose to go on exotic, far-flung holidays deserve free health advice before they travel?
那些选择去异国他乡的偏僻之地度假的人在旅行前可以得到免费的健康建议吗?
This advice is more relevant now than ever before, even as more parents want to embrace the ideas of their children, despite the current housing crunch.
这个建议现在比以往任何时候都更有意义,尽管目前住房紧缩,现在有更多的父母希望听取他们孩子的想法。
Before that, I can search online and see if I can find some advice for you.
在那之前,我可以上网搜索一下,看看能不能找到一些建议给你。
Advice precedence doesn't matter here; the string is captured before the execution occurs, whereas it's used to look up statistics after execution has completed.
建议的先后次序在这里没影响;虽然是在执行完成之后才用建议查询统计值,但字符串是在执行发生之前捕捉的。
You don't send a thank-you note: you have no doubt heard this advice before, but lots of people still don't do it.
你没有送去一条感谢便条:在这之前你一定听说过这样的建议只是很多人仍不愿意去做。
Leo is a highly creative sign, so this seems to be especially fitting advice for you, as you have probably had a co-collaborator before this.
狮子座是一个具有高度创造性的星座,因此看起来这条建议很适合你们,如果你在此之前就找好了一个合作者的话。
The Cruises gave the Beckhams plenty of advice before their move from Madrid to Los Angeles and hosted an invitation-only, celebrity party for the English couple on Sunday.
在小贝一家从马德里搬到洛杉矶之前,克鲁斯夫妇给了他们很多建议。 夫妇俩还于上周日为小贝夫妇举行了一个接风宴,并邀请了很多明星到场。
Before, an office manager handled bookkeeping while she also turned to her husband for ad-hoc financial and tax-preparation advice.
过去,一名办公室经理负责记账的工作,来西自己也会向丈夫咨询一些特别的财务和报税方面的建议。
Rudi:If you had some friends who are going to travel to Britain, what advice would you give them before they went?
如果你有一些朋友打算去英国旅游,在他们出发前,你有什么建议吗?
‘If you feel any pain you should stop or if you have any pre-existing physical vulnerability, then you should always get medical advice before trying it,’ he says.
如果你感觉到疼你就应该立刻停止,或者你之前有受过什么伤,你就应该在做瑜伽之前咨询一下专业医师。
On returning to the guesthouse from whose owners we had sought advice before our climb, we were given a round of applause for having managed it.
回到宾馆的时候,老板和伙计为我们成功登顶,给予我们热烈的掌声,我们在登山前曾向他们询问过有关事宜。
Without that support, advice and encouragement women can end up giving up breastfeeding before they have really started to feel comfortable doing it.
如果没有这些支持,建议和鼓励,妇女可能会在还没开始觉得舒服的时候就已经放弃母乳喂养了。
'if you feel any pain you should stop or if you have any pre-existing physical vulnerability, then you should always get medical advice before trying it,' he says. 'Yoga can reduce stress levels.
如果你感觉到疼你就应该立刻停止,或者你之前有受过什么伤,你就应该在做瑜伽之前咨询一下专业医师。
I hear this not so much as advice as useful, potentially life-saving information, which I didn't know before.
我听到类似的于生命有益的且在此之前我并不知道的的信息,我会感激不尽,不会有任何的反感。
Novick gives Palmer advice before his meeting with Ferragamo.
在帕默与菲拉格慕会面之前,诺维克向他提出了忠告。
Obama's chief economist, Austan Goolsbee, dispensed advice about Turkey preparation, proclaiming the virtues of brining the bird before it is cooked.
奥巴马的首席经济学家斯坦·古斯比向众人散发了火鸡烹饪准备的小贴士,并指出了做火鸡前将它用盐水浸泡的好处。
Before giving his advice on API design, Michi starts out by looking at an anti-example.
Michi在给出自己对API设计的建议之前,先举了一个反例为证。
But Mervi Jokkinen, of the Royal College of Midwives, said caution should be applied before issuing universal advice based on the findings.
但是英国皇家助产士学会的MerviJokkinen说,发布基于研究结果的普遍意见之前应该谨慎的施行。
One friend who had a circumcision when he was 19, on medical advice, says that before the cut he used to "explode in a geyser of blood", often at the most embarrassing moments.
我有一个朋友,在十九岁时在医生建议下做了环切手术,他告诉我在未做手术之前经常血流如注,常常会变得很尴尬。
Consumer magazine money editor James Daley says those schooled before this curriculum change rarely seek advice - unless they hit crisis point.
消费者杂志金钱版编辑詹姆士·达利(James Daley)说,这些受过学校训练的人在课程改变前很少寻求咨询,除非他们遇到了危机。
Finally, invariant tests use around advice, where the tests are evaluated both before and after join point execution with the exceptions noted previously.
最后,不变条件测试使用around建议,在该建议中,在连接点执行之前和之后都计算测试,同时具有前面提到过的例外。
And Henry Morton Stanley, an American journalist-adventurer, visited Kirk in Zanzibar for advice before setting out to find Livingstone.
美国记者兼冒险家Henry MortonStanley在出发寻找Livingstone前,在桑给巴尔与kirk见过面并向他征求建议。
And Henry Morton Stanley, an American journalist-adventurer, visited Kirk in Zanzibar for advice before setting out to find Livingstone.
美国记者兼冒险家Henry MortonStanley在出发寻找Livingstone前,在桑给巴尔与kirk见过面并向他征求建议。
应用推荐