You can also delegate the behavior to a public method on the aspect if you choose.
如果愿意的话,还可以将行为委派给方面的公共方法。
The only public method available to test returns void, so how will you verify its correct functionality?
惟一可用于测试的public方法返回的是 void, 那么,您怎么能够验证其功能的正确性呢?
If I can find all the code that calls the method, even though it's a public method, I can change its name.
假如我能找到所有调用该方法的代码,那我就可以也应当改变这个方法的名称,即使它是一个公共方法。
For this example, the facade interface exposes one public method for each command, as illustrated in Listing 6.
对于这个范例,facade接口为每个command公开了一个公共方法,如清单6所示。
The model code needs to be able to load data from a known location and offer a public method to provide that data.
模型代码需要能够从一个已知的位置装载数据,并提供一个公共方法用于提供那些数据。
By entering the URL and clicking the Submit button, you see a page describing each public method of your Web service (see figure 11).
输入url并单击Submit按钮后,您将看到一个页面,描述了Web服务的每个public方法(参见图11)。
In Listing 17, I'm specifying that any public method called get in any instance of org.runtimemonitoring.spring.DAO should be targeted.
在清单17中,我指定org . runtimemonitoring . spring . DAO的任何实例中的任何名为get的公共方法都应被作为目标。
Because you are developing an OSGi service and exposing it as a Web service, both services need at least one public method for others to call it.
因为正在开发osgi服务并将它作为Web服务公开,所以这两个服务至少需要一个public方法以供调用。
To protect exclusive technology commercial information, the owner could either select partial of public method or security protection method.
对独有商业技术信息的保护,信息持有人可以选择或综合采用公开和保密两种方式。
Rather than using programmatic transactions within the same method, you can move the update operations to another public method within the call stack.
不用在相同的方法中使用编程事务,而是将更新操作移动到调用栈的另一个公共方法中。
Every public method on an EJB defines a transactional boundary between the EJB container and the EJB client, as specified in the deployment descriptor.
EJB上的每个公共方法都定义了ejb容器和EJB客户端之间的事务边界,并在部署描述符指定该边界。
It stipulates the public method of Mortgage of Ships together with Bareboat Leasehold, the effect of no registration shall not act against a third party.
该条中将光船租赁权与船舶抵押权一并规定了登记的公示方法,以及未经登记不得对抗第三人的效力。
I may realize the name of a public method isn't very communicative of what it does, that a different method name would communicate more clearly what it does.
对于某个公共方法来说,我可能会觉得它的名称没有很好的描述其完成的任务,也就是说更换一个名字或许能更清楚的表达它的功能。
Using a dispatcher queue to execute the code in parallel with the caller and then an OS event to block a public method that waits for the result (assuming a synchronous future pattern).
使用一个dispatcherqueue来并行的执行调用者和被调用的代码,然后一个操作系统事件会阻塞一个等待结果的公共方法假定一个同步未来模式assuming a synchronous future pattern,看不懂,再汗一个-_- !
This leaves us with other method of dependency injection, called setting injection, which involves creating a public method inside the object for the dependencies that need injection.
这就给我们留下其他的方法进行依赖注入,称为设置注入,包含在需要注入依赖的对象里创建一个公共方法。
However, if one public update method invokes another, the transaction owner may not have control of the rollback logic in some circumstances.
然而,如果其中一个公共更新方法调用了另一个,那么事务所有者在某些情况下可能无法控制回滚逻辑。
We were on a project where the client insisted on Javadoc comments for every public class and method.
我们曾经做一个项目:客户坚持要为每一个公用类和方法写注释。
The API method implementations are defined in the controller class as public instance methods.
API方法实现是作为公共实例方法定义在控制器类中的。
Because of interservice communication, one public API-layer update method can invoke another public API-layer update method.
由于执行服务之间的通信,一个公共api层更新方法可以调用另一个公共api层更新方法。
Likewise, the __call magic method must also be defined public, just as all magic methods must be.
同样,__ call魔术方法必须被定义为公共的,所有其他魔术方法都必须如此。
The other side effect is that because the invocation of print is done indirectly through reflection, the method must be public (and accept no arguments).
另一个副作用是由于对print的调用是通过反射间接进行的,所以这个方法必须是公共的(并且不接受参数)。
One way to handle this is to provide a public static initialize method that throws a checked exception when initialization fails.
处理这个问题的一种方法是提供一个公共静态initialize方法,初始化失败时该方法将抛出一个检查到的异常。
A dialog box displays, requesting the name and visibility (public, private, protected, or default) of the new method.
这时会出现一个对话框,要求输入这个新方法的名称及可见性(公开的、私有的、保护的或是默认的)。
You add these annotations as needed to any public, parameterless method that returns void to implement reactions to life-cycle events.
可以根据需要将这些注解添加到适当的方法上,从而实现对生命周期事件的响应;只要求这些方法是公共方法,没有参数并返回void。
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
在这个例子中,我们没有在被注入者中定义一个实例变量,而是定义了一个返回所需对象的抽象方法。
You can modify the visibility of methods in the same way as properties, adding public, private, or protected to the method declaration.
修改方法可见度的方法与修改属性可见度的方法一样,即在方法声明中添加public、private或protected。
Amidst all of the other compiler-provided methods, you should be able to find a good old public static void main (String args) method.
在所有其他编译器提供的方法之中,您应当能够找到一种优秀的旧publicstaticvoidmain (Stringargs)方法。
Initially when writing code, I don't worry too much about categorizing method visibility as default (package), private, public, or protected.
最初在编写代码时,我没有过多地担心将方法可视性归为default(包)、private、public还是protected。
The agent JAR file USES a special manifest attribute to specify the actual agent class, which must define a method public static void premain (String options, Instrumentation inst).
代理JAR文件使用一个特殊的清单属性来指定实际的代理类,这必须定义一个方法:publicstaticvoid premain (Stringoptions,Instrumentation inst)。
You can then point JUnit at the TestSuite instance by defining a public static method named suite .
然后,可以通过定义一个叫做suite的publicstatic方法,在TestSuite实例中指定JUnit。
应用推荐