步骤2:创建一个动态代理客户端。
记忆可以显著提高动态代理调用的性能。
Memoization can provide significant performance gains for dynamic proxy calls.
创建一个动态代理客户端。
JAX - WS 2.0动态代理客户端。
没有该文件,客户端将无法理解任何动态代理实例。
Without this file, the client would not be able to understand any of the dynamic-proxy instances.
DI现在缺少的重要功能只有动态代理和拦截器了。
The only important DI piece missing is dynamic proxies and interception.
在本文中,您将了解如何创建一个动态代理客户端。
In this article, you'll learn how to create a dynamic proxy client. You'll learn how to.
不幸的是,使用动态代理类确实有一个重要不足:性能。
Unfortunately, using dynamic proxy classes does have one major drawback: performance.
一个动态代理可以在运行时通过提供一个SEI来获得。
A dynamic proxy can be obtained during run time by providing an SEI. It is not as statically bound as a stub class, but it requires an SEI to be instantiated.
在这篇文章里,您看到了用调用处理使用动态代理的好处。
In this article, you saw the benefits of using dynamic proxies with an invocation handler.
Geronimo使用cglib库来执行动态代理生成。
Geronimo USES the CGLib library to perform dynamic proxy generation.
我可以很容易地指定动态代理类在运行时要实现的多个接口。
I could just as easily specify multiple interfaces that the dynamic proxy class would implement at runtime.
对动态代理类的方法调用,不会像直接调用对象的方法那样好。
Method invocations on dynamic proxy classes do not perform nearly as well a direct method call on objects.
动态代理是这样一种类,它可以实现在运行时指定的一组接口。
Dynamic proxies are classes that implement a set of interfaces specified at runtime.
动态代理类似于静态stub,充当目标服务端点接口的代理。
A dynamic proxy is similar with static stub to act as a proxy for target service endpoint interface.
动态代理在运行时创建代理,从而可灵活绑定到特定端口和端点。
The dynamic proxy creates the proxy at runtime and, therefore, provides the flexibility to bind to specific port and endpoint.
动态代理:代理是用来处理服务器端和客户端的延迟属性信息的。
Dynamic proxy: a proxy is generated to handle lazy properties information both on server and client side.
这是所有您为了使用动态代理方法调用Web服务而需要编写的代码。
This is all the code you need to write to invoke a web service using the dynamic proxy method.
在示例中,我只为一个接口建立了动态代理类,这个接口是:user。
In the example, I created the dynamic proxy class for a single interface: User.
当应用程序需要业务对象实例时,它实际会接收到一个动态代理类的实例。
When the application needs a business object instance, it will actually receive an instance of the dynamic proxy class.
所以,有一种解决方案,就是在有些地方用动态代理,在其他地方则不用。
One solution, therefore, is to use dynamic proxies in some areas and not in others.
上面的示例通过动态代理API,按照以下步骤,在一个端点上调用一个操作
The example above uses the following steps to invoke an operation on an endpoint using the dynamic proxy API
通过Call对象进行 DII调用的过程比使用存根活动态代理复杂。
Making DII calls through a Call object is programmatically more complex than using a stub or dynamic proxy.
动态代理提供一种简单机制来调用Web服务,不需要您深入了解底层XML。
Dynamic proxies provide a simple mechanism to invoke a Web service without requiring much knowledge about the underlying XML.
与紧密耦合方法不同,使用动态代理给您带来了可以重用、可以配置的验证代码。
Unlike a tightly coupled approach, using dynamic proxies leaves you with validation code that is reusable and configurable.
动态代理类在业务对象框架中有许多用途,不仅仅是用一致的方式对方法进行验证。
Dynamic proxy classes have many USES within a business object framework other than simply validating methods in a uniform way.
二者之间的区别是,动态代理在运行时动态支持服务端点接口,不会生成任何代码。
The difference between them is that dynamic proxy support a service endpoint interface dynamically at runtime without requiring any code generation.
JDK自从1.3版本开始,就引入了动态代理,并且经常被用来动态地创建代理。
The JDK dynamic proxy, which has been available since JDK 1.3, is often used to create proxies dynamically.
动态代理支持在运行时访问服务端点接口(SEI),不需要静态生成stub类。
Dynamic proxies provide access to service endpoint interfaces (SEIs) at run time without requiring static generation of a stub class.
动态代理支持在运行时访问服务端点接口(SEI),不需要静态生成stub类。
Dynamic proxies provide access to service endpoint interfaces (SEIs) at run time without requiring static generation of a stub class.
应用推荐