Without this file, the client would not be able to understand any of the dynamic-proxy instances.
没有该文件,客户端将无法理解任何动态代理实例。
Dynamic proxy classes give us a way to easily handle validation on any method in a uniform way, while completely separating all of the validation logic from the core business logic.
动态代理类给了我们一种以统一方式方便地处理任何方法上的验证途径,同时把所有的验证逻辑完全与核心业务逻辑分离开。
Dynamic proxy, as its name suggests, supports an SEI dynamically at run time without requiring any code generation of a stub class that implements a specific SEI.
动态代理,正如它的名字暗示的,能在运行时动态的支持一个SEI而不需要产生任何代码实现一个特定的SEI。
Dynamic proxy classes have many USES within a business object framework other than simply validating methods in a uniform way.
动态代理类在业务对象框架中有许多用途,不仅仅是用一致的方式对方法进行验证。
If you're not familiar with it, you can think of an on demand router as a very intelligent dynamic proxy server.
如果不熟悉它,可以将随需应变路由器想象成一个非常智能的动态代理服务器。
When the application needs a business object instance, it will actually receive an instance of the dynamic proxy class.
当应用程序需要业务对象实例时,它实际会接收到一个动态代理类的实例。
The difference between them is that dynamic proxy support a service endpoint interface dynamically at runtime without requiring any code generation.
二者之间的区别是,动态代理在运行时动态支持服务端点接口,不会生成任何代码。
I could just as easily specify multiple interfaces that the dynamic proxy class would implement at runtime.
我可以很容易地指定动态代理类在运行时要实现的多个接口。
Memoization can provide significant performance gains for dynamic proxy calls.
记忆可以显著提高动态代理调用的性能。
Method invocations on dynamic proxy classes do not perform nearly as well a direct method call on objects.
对动态代理类的方法调用,不会像直接调用对象的方法那样好。
Unfortunately, using dynamic proxy classes does have one major drawback: performance.
不幸的是,使用动态代理类确实有一个重要不足:性能。
Using dynamic proxy classes for validation is a simple and effective way to decouple validation routines from your application's core business logic.
使用动态代理类进行验证是从应用程序的核心逻辑去耦验证程序的简单而有效的方法。
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背后的主要思想是基于动态代理机制创建新的对象类型,该对象会在运行时实现一些接口。
Create a dynamic proxy client.
创建一个动态代理客户端。
The JDK dynamic proxy, which has been available since JDK 1.3, is often used to create proxies dynamically.
JDK自从1.3版本开始,就引入了动态代理,并且经常被用来动态地创建代理。
The JDK dynamic proxy is simple to use, but the JDK dynamic proxy approach requires the target objects implement one or more interfaces.
JDK的动态代理用起来非常简单,当它有一个限制,就是使用动态代理的对象必须实现一个或多个接口。
The dynamic proxy creates the proxy at runtime and, therefore, provides the flexibility to bind to specific port and endpoint.
动态代理在运行时创建代理,从而可灵活绑定到特定端口和端点。
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的复杂性。
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来获得。
The example above uses the following steps to invoke an operation on an endpoint using the dynamic proxy API
上面的示例通过动态代理API,按照以下步骤,在一个端点上调用一个操作
In the example, I created the dynamic proxy class for a single interface: User.
在示例中,我只为一个接口建立了动态代理类,这个接口是:user。
Stub and dynamic proxy methods use the Service Endpoint Interface (SEI).
存根和动态代理方法使用服务端点接口(Service Endpoint Interface,SEI)。
Community Edition does not require this additional code generation step because it USES dynamic proxy generation.
CommunityEdition不需要这一额外的代码生成步骤,因为它使用动态代理生成。
Let's take a look at a simple dynamic proxy client that creates an account, withdraws money, and then checks the account balance.
下面我们来看一个简单的动态代理客户端,它创建一个账户,提取现金,然后检查账户余额。
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实例可能很复杂。
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包。
This is all the code you need to write to invoke a web service using the dynamic proxy method.
这是所有您为了使用动态代理方法调用Web服务而需要编写的代码。
Step 2: Create a dynamic proxy client.
步骤2:创建一个动态代理客户端。
Step 2: Create a dynamic proxy client.
步骤2:创建一个动态代理客户端。
应用推荐