Create a dynamic proxy client.
创建一个动态代理客户端。
JAX-WS 2.0 dynamic proxy clients.
JAX - WS 2.0动态代理客户端。
Step 2: Create a dynamic proxy client.
步骤2:创建一个动态代理客户端。
Geronimo USES the CGLib library to perform dynamic proxy generation.
Geronimo使用cglib库来执行动态代理生成。
Stub and dynamic proxy methods use the Service Endpoint Interface (SEI).
存根和动态代理方法使用服务端点接口(Service Endpoint Interface,SEI)。
Memoization can provide significant performance gains for dynamic proxy calls.
记忆可以显著提高动态代理调用的性能。
Unfortunately, using dynamic proxy classes does have one major drawback: performance.
不幸的是,使用动态代理类确实有一个重要不足:性能。
This is all the code you need to write to invoke a web service using the dynamic proxy method.
这是所有您为了使用动态代理方法调用Web服务而需要编写的代码。
A dynamic proxy for a service endpoint (more on which in the next installment in this series).
服务端点的动态代理(在这一系列文章的下一篇文章中对此有更多描述)。
A dynamic proxy is similar with static stub to act as a proxy for target service endpoint interface.
动态代理类似于静态stub,充当目标服务端点接口的代理。
The Cglib2AopProxy class is part of the Spring framework and is used to generate dynamic proxy objects.
cglib2aopproxy类是Spring框架的一部分并用于生成动态代理对象。
Method invocations on dynamic proxy classes do not perform nearly as well a direct method call on objects.
对动态代理类的方法调用,不会像直接调用对象的方法那样好。
I could just as easily specify multiple interfaces that the dynamic proxy class would implement at runtime.
我可以很容易地指定动态代理类在运行时要实现的多个接口。
The JDK dynamic proxy, which has been available since JDK 1.3, is often used to create proxies dynamically.
JDK自从1.3版本开始,就引入了动态代理,并且经常被用来动态地创建代理。
The example above uses the following steps to invoke an operation on an endpoint using the dynamic proxy API
上面的示例通过动态代理API,按照以下步骤,在一个端点上调用一个操作
If you're not familiar with it, you can think of an on demand router as a very intelligent dynamic proxy server.
如果不熟悉它,可以将随需应变路由器想象成一个非常智能的动态代理服务器。
Community Edition does not require this additional code generation step because it USES dynamic proxy generation.
CommunityEdition不需要这一额外的代码生成步骤,因为它使用动态代理生成。
When the application needs a business object instance, it will actually receive an instance of the dynamic proxy class.
当应用程序需要业务对象实例时,它实际会接收到一个动态代理类的实例。
The dynamic proxy creates the proxy at runtime and, therefore, provides the flexibility to bind to specific port and endpoint.
动态代理在运行时创建代理,从而可灵活绑定到特定端口和端点。
Let's take a look at a simple dynamic proxy client that creates an account, withdraws money, and then checks the account balance.
下面我们来看一个简单的动态代理客户端,它创建一个账户,提取现金,然后检查账户余额。
The JDK dynamic proxy is simple to use, but the JDK dynamic proxy approach requires the target objects implement one or more interfaces.
JDK的动态代理用起来非常简单,当它有一个限制,就是使用动态代理的对象必须实现一个或多个接口。
Note that some frameworks, such as Spring AOP and Hibernate, often use both the CGLIB library and the JDK dynamic proxy to meet their needs.
需要注意的是一些框架例如springAOP和Hibernate,它们为了满足需要经常同时使用JDK的动态代理和CGLIB包。
The main idea behind AOP is that you create new typed object, based on a dynamic proxy mechanism, that implements a set of interfaces at runtime.
AOP背后的主要思想是基于动态代理机制创建新的对象类型,该对象会在运行时实现一些接口。
The difference between them is that dynamic proxy support a service endpoint interface dynamically at runtime without requiring any code generation.
二者之间的区别是,动态代理在运行时动态支持服务端点接口,不会生成任何代码。
As mentioned in Part 1, dynamic proxy clients hide the complexity of working with XML APIs by exposing the XML via JAXB 2.0 data binding technology.
如第1部分所述,动态代理客户端通过JAXB 2.0数据绑定技术公开XML,从而隐藏了使用XMLAPI的复杂性。
Using dynamic proxy classes for validation is a simple and effective way to decouple validation routines from your application's core business logic.
使用动态代理类进行验证是从应用程序的核心逻辑去耦验证程序的简单而有效的方法。
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.
一个动态代理可以在运行时通过提供一个SEI来获得。
However, if you know the web service you want to invoke is unlikely to change, you should use dynamic proxy because configuring the Call instance can be complex.
然而,如果您知道您想要调用的Web服务不可能更改,就应该使用动态代理,因为配置Call实例可能很复杂。
However, if you know the web service you want to invoke is unlikely to change, you should use dynamic proxy because configuring the Call instance can be complex.
然而,如果您知道您想要调用的Web服务不可能更改,就应该使用动态代理,因为配置Call实例可能很复杂。
应用推荐