This class also contains methods to handle the business logic for each element of functionality required.
这个类还包含了为功能所需的每个元素处理业务逻辑的方法。
If your class loads the implementation based on some logic, it still needs to require the definitions of all the implementation classes, and that doesn't get you anywhere.
如果您的类将装入基于某些逻辑的实现,它仍然需要获取所有实现类的定义,并且那样做也无法取得任何效果。
Summary: If you have not already done so, delegate some or all of your advice logic to another class that you can test directly.
概述:如果还没有做的话,可以将一些或者全部建议逻辑委派给其他可以直接测试的类。
Personally I like the idea of keeping all the data access logic encapsulated in that class.
我个人倾向于将所有的数据访问逻辑封装到这个类中。
Design by Contract lets the class designer concentrate on the logic that implements the class functionality without worrying about the validity of arguments.
契约式设计让类的设计者专注于实现了类的功能性的逻辑,而不用担心实参的有效性。
Please note that the logic applied here depends on the structure of the domain model, and as the level and number of attributes increase, the complexity of conversion increases in the action class.
注意,这里适用的逻辑取决于域模型的结构,随着属性的级别和数量增加,操作类中的转换的复杂性也相应增加。
The model class holds the essential business logic and manages the data corresponding to that part of the application.
模型类存放实际的业务逻辑,并管理与应用程序部分对应的数据。
Because the trait's methods aren't really a "part" of any class until the trait is implemented by that class, the compiler can leave out checking some aspects of the methods' logic until later.
因为在类实现特征的方法之前,它实际上并不是任何类的一“部分”,因此编译器可将方法的某些逻辑方面留到以后再处理。
This class does most of the work of contributing to the transformation, providing you with a place to put your customized processing logic.
该类完成了构建转换的大多数工作,提供了放置您自定义的过程逻辑的地方。
Those options allow for the reuse of existing logic as services while serving a new class of consumers.
这些选项允许将现有逻辑作为服务重用,同时提供了新的客户类别。
For now, a controller class is a placeholder for one or more classes that would be fleshed out during design to implement the business logic of your system.
现在,控制器类是设计实现系统商业逻辑填充的一个或多个类的位置保持器。
This is a controller class that has the responsibility of managing the execution of the business logic.
这是一个控制器类,其职责是管理业务逻辑的执行。
The code in Listing 2 is meant to demonstrate the general logic of the output class.
清单2中的代码旨在演示输出类的通用逻辑。
For example, methods, functions, a class, or a module of complex logic might be identified.
例如,它将bug目标锁定为方法、函数、类或包含复杂逻辑的模块。
You need to bypass this logic to effectively always assure that the validate flag is set to true; higher up in the class, it is initialized with a default value of false.
为了有效地始终确保将验证标志设置为true,您需要绕开此逻辑;在类的上部,此值初始化时使用的缺省值为false。
The GenSequence class implements the core logic of the utility.
GenSequence类实现实用程序的核心逻辑。
An annotation handler is a class that implements a couple of Lombok interfaces and the AST transformation logic - aka code generation.
注释处理程序是实现一对Lombok接口以及转换逻辑的类—aka代码生成。
If you were to include this logic as part of the Book class, the resulting solution would probably be a hard-wired one.
如果想把这个逻辑作为book类的一部分包含进来,那么形成的解决方案可能是个难缠的方案。
If a data logic method in the UserDefinedPushDownMethodsImpl class throws an exception, you can define and create an instance of the same type of exception inside the method.
如果userdefinedpushdownmethodsimpl类中的数据逻辑方法抛出异常,用户可以在方法内部定义并创建一个与异常具有相同类型的实例。
Custom validators can contain detailed logic to examine the elements of a topology through the API, such as the static methods of the ValidatorUtils class.
定制确认器可以包含具体的逻辑,以通过API检查拓扑的元素,例如validatorutils类的静态方法。
Specify AtomFeeds as the name of the class that contains the business logic, as in Figure 12.
指定AtomFeeds作为包含业务逻辑的类名,如图12所示。
Alter the logic in the main method of the OGAdmin class to make it acceptable to provide the a "l argument by itself."
更改ogadmin类的main方法中的逻辑,使其能接受仅仅提供—l参数的情况。
The sample code USES a utility class EtagComputeUtils to generate a byte array representation of an object and to handle the MD 5 digest logic.
下面的例子使用了一个工具类etagcomputeutils来产生对象所对应的字节数组,并处理MD5摘要逻辑。
The Action class should control the flow and not the logic of the application.
action类应该控制应用程序的流程,而不应该控制应用程序的逻辑。
By factoring some logic out of your advice and into a helper class (or method), you can write tests that check your application's crosscutting behavior independent of its crosscutting specification.
通过将一些逻辑从建议中分离到helper类中(或者方法中),可以编写与横切规范无关的、检查应用程序横切行为的测试。
Modify the execute method of OwnerAction to code your logic, (every action class must implement the execute method).
请修改oweneraction类的execute方法来实现您的逻辑,(每个action类都必须实现execute方法)。
Most applications have custom logic that authorizes users to perform an operation not only on a class, but also on an instance of that class.
大多数应用程序都有定制逻辑,它授权用户不仅仅在类上执行操作,而且还在该类的实例上执行操作。
Continuing with this design, you can place all of the business logic and transition mapping in a utility class for use by both our controller and JSPs.
继续这个设计,您可以将所有的业务逻辑和转换映射放在一个实用程序类中,以供我们的控制器和JSP使用。
Continuing with this design, you can place all of the business logic and transition mapping in a utility class for use by both our controller and JSPs.
继续这个设计,您可以将所有的业务逻辑和转换映射放在一个实用程序类中,以供我们的控制器和JSP使用。
应用推荐