本地对等体是一个本地对象,普通对象通过本地方法委托给本地对象。
A native peer is a native object to which a normal object delegates via native methods.
但可以修改此缺省行为,而将组件的所有方法委托为作为特定安全角色的成员运行。
But you can modify this default behaviour and delegate all methods of the component to run as a member of a specific security role.
execute方法委托抽象的模板方法doExecute()负责继续处理原始的连接点。
The execute method delegates to an abstract template method, doExecute(), which is responsible for proceeding with the original join point.
否则,该方法委托typefactory类,后者根据来自configuration的字符串表示构建一个类型。
Otherwise, this method delegates to the TypeFactory class, which builds a type from the string representation from the configuration.
清单20中显示的两个getProperty()方法委托TypeGetter来获取配置字段,如果配置中没有指定值,则处理默认值。
The two getProperty() methods, shown in Listing 20, delegate to the TypeGetter to retrieve the configuration field, handling default values if no value was specified in the configuration.
该工厂方法通过将这项工作委托给服务层来实例化课程对象集合。
This factory method instantiates the collection of course objects by delegating the work to the service layer.
这个方法现在工作得很好;但是,它现在遵循的是标准类装入委托(缓存、双亲、磁盘)。
This method will now work fine; however, it now follows the standard class loading delegation (cache, parent, disk).
在代理中对方法的调用委托到下面相应的对象中。
The method invocations on the proxy are delegated to the underlying objects.
委托模式将提供一种基于各种条件委托行为的方法。
The delegate pattern provides a way of delegating behavior based on different criteria.
例如,代理类可以把方法调用委托其他任何对象,甚至是处理程序本身。
For example, the proxy class could delegate the method invocation to any other object or even handle it itself.
方法现在在试图自己找到类之前,先委托给自己的双亲类装入器。
The method now delegates to its parent class loader before attempting to find the class itself.
这些操作都可以接受一个委托,一般可以使用匿名方法的方式来传递。
These all accept a delegate, usually in the form of an anonymous method.
调用处理程序类还会把方法调用委托到真正的实现类,以便处理核心业务逻辑。
The invocation handler class will also delegate method calls to a real implementation class in order to process the core business logic.
该代码使用私有方法从池中检索对象,并且调用所提供的委托。
This code USES the private methods to retrieve an object from the pool and call the provided delegate.
当解析数据时,会调用委托方法;这一步中,要决定哪些数据要忽略,哪些数据放入条目数组中。
As the data is parsed, the delegate methods are called; this step is where you decide which data to ignore and which data to put into the items array.
我认为,如果我按照您的建议使用OO委托,LineItem实体将具有一个getDetailItemData()方法。
I suppose if I was to follow your advice and use OO delegation, the LineItem entity would have a getDetailItemData() method.
而且,即使在实体e JB组件中进行OO委托以加载完整的结构,get方法的总数仍将相对较少。
And even if you do OO delegation in the entity EJB components to load the full structure, the total number of get methods will be relatively few.
有两种方法可以实现ViewController:通过继承或通过委托。
ViewControllers can be implemented in two ways: through inheritance or through delegation. Both are shown here.
main方法简单地将每个操作委托给辅助(worker)方法。
The main method simply delegates each operation to worker methods.
如清单1所示,您将可以将序列化委托给PurchaseOrder的marshal方法。
As shown in Listing 1, you delegate the serialization to PurchaseOrder's marshal method.
ExecuteFromPool方法除了接受所需类型以外,还接受委托和参数。
The ExecuteFromPool method accepts a delegate and arguments in addition to the desired type.
它们各自将实际工作委托给privilegedexceptionaction类的run方法,这个类在特许块中被调用。
They each delegate the real work to the run method of a PrivilegedExceptionAction class that is invoked within a privileged block.
可以看到在viewDidLoad方法中设置了tableView委托和数据源。
You can see the tableView delegate and data source set below in the viewDidLoad method.
前两个方法可以委托给RolloverIcon正在为它创建图形效果的图标,因为翻转图像的大小将与原来图像的相同。
The first of the two methods can be delegated to the icon that the RolloverIcon is creating the graphic effect for, as the rollover image is going to be the same size as the original.
特定关系被委托给受保护类的fulfills方法。
Special relationships are delegated to the fulfills method of the class being protected.
数据源的addConnection() 委托辅助方法getNameForDataSource()从数据源确定数据库的名称。
The addConnection() for data sources delegates to a helper method, getNameForDataSource(), to try to determine the name of a database from the data source.
main方法然后会将参数解析委托给CmdLineParser对象,后者将返回Options对象。
The main method then proceeds to delegate the parsing of the argument to a CmdLineParser object, which then returns an Options object.
委托对象或者说委托方法是一个简单且功能强大的模式,在此模式中,程序中的一个对象,其行为代表另一对象,或与其一致。
A delegate object or delegation is a simple and powerful pattern in which one object in a program ACTS on behalf of, or in coordination with, another object.
该方法返回一个对象,这个对象实现所有指定的接口,并将所有方法调用委托给选定的处理程序。
The method returns an object that implements all the specified interfaces and proxies all method calls onto the chosen handler.
委托对象保持对另一个对象的引用,委托方法在恰当的时间向其发送消息。
The delegating object keeps a reference to the other object, the delegate, and at the appropriate time sends a message to it.
应用推荐