Only public methods that have no arguments can be annotated as lifecycle methods.
只有不带参数的公共方法能注释为生命周期方法。
As for the public methods in our BookSearch class, the code for these methods is as follows.
与booksearch类中的公共方法类似,这些方法的代码如下。
If package access prevents objects from communicating, add more public methods to the classes.
如果包访问不利于对象间的通信,就需要向类中添加更多的公共方法。
The pointcut in the example uses a modifier and wildcard pattern to express "all public methods."
示例中的切入点使用了修饰符(modifier)和通配符(wildcard)模式来表达“所有公共方法”。
In other words, it's the class in the Web service code with public methods that users can access.
换句话说,它就是Web服务代码中带有用户可访问的public方法的类。
Finds the given method through reflection, searching only for public methods.
通过反射查找给定的方法,只搜索公共方法。
The sample service resides in a class named GetUserInfo that includes the following public methods.
示例的服务位于一个名为GetUserInfo的类,它包括以下公有方法。
Only the public methods included in the application architecture's API layer contain transaction logic.
只有包含在应用程序架构的api层中的公共方法包含事务逻辑。
The four public methods of the ACLPerspective supply callers with actual views and underlying data structures.
ACLPerspective的四种公共方法为调用方提供了实际视图和底层数据结构。
This makes it easier to find all the public methods you need to test. Each test starts life looking like this.
这样能够更容易找到您需要测试的所有公有方法。
The remote interface, retrieved through the home interface, gives you access to the public methods of the remote object.
remote接口是通过home接口检索得到的,为您提供了对远程对象的公共方法的访问。
For example, say that you want to display all of the public methods of a given class using reflection. Listing 7 shows an example.
例如,假设您希望利用反射显示给定类的所有公共方法。
PMD currently defines close to 200 rules with specific ones for method length, class length, unique types, and counting public methods.
PMD目前定义了大约200个规则,其中一些特定规则是针对方法长度、类长度和惟一类型的,还有一些用于计算public方法。
Instead, they are traditional JSF action handlers, which are public methods on managed beans that either have no-arguments or accept an ActionEvent.
相反,它们都是一些传统的JSF动作处理程序,或者是受管bean上的公共方法,这些方法或者无实参或者接受ActionEvent。
While in Break mode, however, you are generally not allowed to change declaration statements, such as public methods, public fields, or class declarations.
但是,在中断模式下一般不允许对声明语句(如公共方法、公共字段或类声明)进行更改。
The only methods in the entire application architecture that start, commit, and roll back a transaction are public methods contained in API layer's domain classes.
整个应用程序架构中用于启动、提交和回滚事务的惟一方法就是api层的域类中包含的公共方法。
Test all the public methods that perform an "interesting" function (that is, not getters and setters, unless they do their getting and setting in some unique way).
测试所有执行“令人感兴趣的”功能(即,不是getter和setter,除非它们以某种独特的方式执行获取和设置操作)的公共方法。
A formalized, externally configurable "toolbox" for adding custom tools that can be used by the template (tools in this sense are just compiled Java classes that have public methods).
正式的、可外部配置的“工具箱”,可以增加在模板中使用的自定义工具(这里讲的工具只是具有公共方法的已编译的类)。
A well-designed CherryPy class will probably have only a few public methods exposed to Web clients, but it may have many internal methods a client shouldn't be allowed to access directly.
一个设计良好的CherryPy类可能只有少数几个公有的方法暴露给Web客户机,但是它很可能有许多不允许客户机直接访问的内部方法。
We also added three public methods that retrieve the size (i.e., the number of properties defined), retrieve a single element in the map, and update the map with a new element, respectively.
我们同时加入了3个公有方法来获取大小(例如,定义的属性个数),获取map中的元素,以及更新map中对应的元素等。
By now, a pattern has emerged suggesting that gluttonous code (long methods, too many public methods, excessive conditionals and imports, etc.) impairs readability, testability, and maintainability.
到目前为止,所给出的模式都在暗示臃肿的代码(长方法、太多的public方法、过多的条件和导入,等等)将影响可读性、可测试性和可维护性。
By now, a pattern has emerged suggesting that gluttonous code (long methods, too many public methods, excessive conditionals and imports, etc.) impairs readability, testability, and maintainability.
到目前为止,所给出的模式都在暗示臃肿的代码(长方法、太多的public方法、过多的条件和导入,等等)将影响可读性、可测试性和可维护性。
应用推荐