在这个例子中,我们没有在被注入者中定义一个实例变量,而是定义了一个返回所需对象的抽象方法。
In this case we do not define an instance variable in the injectee, but an abstract method returning the required object. The method may be public or protected
Lindey先生指出,如果能有10万投资者参与这项计划,那将为房地产业注入至少1万亿美元的资金,并将解决相当一部分的住房过剩问题。
Mr. Lindsey points out that 100, 000 participants in the scheme would pump at least $1 trillion into the housing industry, and would wipe out a large slice of excess housing inventory.
Lindey先生指出,如果能有10万投资者参与这项计划,那将为房地产业注入至少1万亿美元的资金,并将解决相当一部分的住房过剩问题。
Mr. Lindsey points out that 100,000 participants in the scheme would pump at least $1 trillion into the housing industry, and would wipe out a large slice of excess housing inventory.
例如,由于有新的物质注入二者之间的海底,非洲和南美洲距离越来越远。
Africa and South America, for example, are moving away from each other as new material is injected into the sea floor between them.
攻击者然后可能编写出一个简单的脚本,发送各种XPath注入并从系统中提取XML文档,如Klein的论文中提及的那样。
An attacker might then potentially write a simple script that sends various XPath injections and extracts an XML document from a system as mentioned in Klein's paper.
这里假设复合率是与注入载流者的密度成正比。
It was assumed that the recombination rate is proportional to the density of injected carriers.
SQL注入这种技术使攻击者可以利用应用程序中未仔细检查的输入机会来执行未经授权的SQL命令,而应用程序的本意是使用该输入来构造动态sql查询。
SQL injection is a technique which enables an attacker to execute unauthorized SQL commands by taking advantage of non-scrutinized input opportunities in applications that build dynamic SQL queries.
尽管本例以最简单的形式演示了一个SQL注入,但是您可以看出攻击者利用SQL注入有多么容易。
Although this example demonstrates an SQL injection in its simplest form, you can see just how easy it is for an attacker to use.
许多DI的支持者愿意采用构造函数注入,因为这意味着注入的类永远不会出现依赖项不存在的情况。
Many proponents of DI prefer constructor injection, because it means that the injected class never exists in a state where its dependencies aren't present.
即使批评者也不得不承认,他以其高超武功给亚洲动作电影注入了新的生命力。
Even critics concede that he injected life into Asian action films with his martial arts mastery.
幸运的是,MartinFowler已经站出来解决这个问题,他与多个框架的构建者合作,把这种形式的解耦命名为依赖注入。
Fortunately, Martin Fowler has come to the rescue and, in collaboration with several framework builders, named this style of decoupling dependency injection.
在运行时,服务使用者使用依赖注入技术来注入所需的服务提供者实现。
The service consumer USES the dependency injection technology to inject the required service provider implementation at runtime.
攻击者将其恶意输入注入到sql语句中,以修改查询语句的逻辑。
The attacker injects his malicious inputs to the SQL statement to change the query's logic.
为了让DI工作,必须拥有一个接口,可以把这个接口的具体类注入到需要的行为的消费者中。
For DI to work, you must have an interface whose concrete class you can inject into the consumer of the behavior you desire.
通过使用IronPython脚本,开发者可以将代码注入到运行着的应用中以增加他们想要的任何特性。
With IronPython scripts, developers can inject code into running applications to add whatever features they see as missing.
我们已经知道攻击者是如何将代码注入应用程序的,接下来再看看一些常见攻击所带来的影响。
Now that you know how attackers get their code into applications, look at the implications of some common attacks.
爱尔兰大型银行的股票价格开始下跌,因为投资者害怕当更多的公共资本被注入市场以后,他们会因此而受到拖累。
Shares in the big Irish Banks fell because investors feared they would suffer as more public capital was injected.
许多建立在消费者债务基础上的金融机构已经垮掉了,而剩下的那些,则史无前例地要求联邦资金的注入以苟延残喘。
A number of the financial institutions built on this consumer debt foundered and the remainder required unprecedented injections of federal funds to remain afloat.
上个月,研究者们已再次注入粒子,但直到这周,那批刚注入的质子束才沿着对撞机的圆周完整地急速循环。
Researchers re-injected particles late last month, but it was not until this weekend that bunches of protons were once again whizzing around the collider's entire circumference.
在扫描阶段,攻击者可能会利用路径遍历和跨站点脚本;在攻击阶段,黑客可能会利用SQL注入或远程文件包含进行攻击。
An attacker may use directory traversal and cross-site ccripting during a scan phase and then hit it with an SQL injection or an RFI in the exploit phase.
随着Ajax门户和Web服务的使用增多(这两者都严重依赖于处理XML数据流),XML注入日益流行。
XML injection is more prevalent with the increased use of Ajax portals and Web services, both of which rely heavily on processing XML data streams.
最伟大的德莱尼战士的灵魂会被注入闪闪发亮的构造体中,成为守护族人的永恒警戒者。
Thee greatest warriors of the draenei have their souls imbued into gleaming constructs, serving as eternal Vigilants in defense of their people.
研究者们将米力农注入受血管痉挛所影响的脑区的动脉中。
The investigators infused milrinone intra-arterially into the cerebral territories compromised by the vasospasm.
在他们的方案中,当一个银行的CDS价格高于某一阈值,监管者将迫使管理者注入足够多的自有资本以缓解债券持有人的损失。
In their scheme, when a bank's CDS price stays above a certain threshold, the regulator forces managers to inject enough equity capital to cushion bondholders against losses.
在他们的方案中,当一个银行的CDS价格高于某一阈值,监管者将迫使管理者注入足够多的自有资本以缓解债券持有人的损失。
In their scheme, when a bank's CDS price stays above a certain threshold, the regulator forces managers to inject enough equity capital to cushion bondholders against losses.
应用推荐