Logic class structure is highly important to object-oriented design.
合理的类结构对面向对象设计阶段起着非常重要的作用。
Listing 4 shows the Feed class, which is the final class in the business logic classes.
清单4展示了feed类,这是业务逻辑类中的最后一个类。
If you have this option disabled, you get a skeleton class without the business logic for the "add" operation.
如果您使这个选项失去活性,您将得到一个没有“添加”操作的业务逻辑性的框架类。
Summary: If you have not already done so, delegate some or all of your advice logic to another class that you can test directly.
概述:如果还没有做的话,可以将一些或者全部建议逻辑委派给其他可以直接测试的类。
You should also notice in the example that I always call an actual implementation class to perform the business logic.
您还应当注意到,在示例里我一直调用实际的实现类来执行业务逻辑。
Instead, it keeps your previous skeleton class and its business logic.
相反,它会保持您以前的框架类和它的业务逻辑性。
Personally I like the idea of keeping all the data access logic encapsulated in that class.
我个人倾向于将所有的数据访问逻辑封装到这个类中。
The filtering logic is contained in an external class that can be downloaded as part of the source code for this article.
过滤逻辑包含在一个外部类中,该类可作为本文源代码的一部分下载。
The invocation handler class is where all of the data validation logic is handled.
调用处理程序类是处理所有数据验证逻辑的地方。
The model class holds the essential business logic and manages the data corresponding to that part of the application.
模型类存放实际的业务逻辑,并管理与应用程序部分对应的数据。
The first step to improving our data-format validation procedure is to move all the validation logic into a single helper class, from which other methods can invoke it as needed.
改进数据格式验证过程的第一步是将所有的验证逻辑都移至一个助手类中,其它方法可以按需从这个类上调用验证逻辑。
Those options allow for the reuse of existing logic as services while serving a new class of consumers.
这些选项允许将现有逻辑作为服务重用,同时提供了新的客户类别。
The logic in this class may never need to change, even if the business rules need to be updated.
该类中的逻辑永远不需要更改,即使业务规则需要更新时也是如此。
Design by Contract lets the class designer concentrate on the logic that implements the class functionality without worrying about the validity of arguments.
契约式设计让类的设计者专注于实现了类的功能性的逻辑,而不用担心实参的有效性。
Because our example application included a business delegate class, we placed the validation logic there.
因为示例应用程序包含了一个业务委派类,所以我们在其中放置了验证逻辑。
The idea is to keep the controller class as simple as possible to allow business logic to be abstracted to a helper class.
这个想法是为了使控制器类尽可能保持简单以允许业务逻辑被抽象为助手类。
The concrete DAO class contains logic for accessing data from a specific data source.
具体的dao类包含访问特定数据源的数据的逻辑。
Let's encapsulate that logic with a new class as shown in Listing 5.
让我们使用清单5所示的新类封装这种逻辑。
Now that you have an entry point into your logic with the new action class you created, you can begin to develop the code that does the work.
创建了新的操作类之后,就拥有了逻辑执行切入点,那么下面开始开发执行操作的代码。
The code in Listing 2 is meant to demonstrate the general logic of the output class.
清单2中的代码旨在演示输出类的通用逻辑。
It interprets developer-supplied markup, evaluating the desired end-result based on predefined rendering logic mapped to the JSF custom-class libraries.
它解释开发人员提供的标签,基于与JSF 定制类库匹配的预定义呈现逻辑,评估所需的最终结果。
The bootstrapping class contains all the logic to bring the BC to life and get it up and running.
引导类包含所有将BC 激活、启动和运行的逻辑。
Example: Move the highlighting logic to another class.
例子:将突出显示逻辑转移到其他类。
You can extend the NotesThread class and encapsulate your logic within it.
您可以扩展notesthread类并将自己的逻辑封装在其中。
Class wrapping: wrapping or replacing a target class with another class that contains instrumentation logic.
类包装:用另一个包含工具逻辑的类包装或替换目标类。
As I mentioned, we will define the table tag's core logic in the TableTag class.
如前所述,我们将在TableTag类中定义表格标记的核心逻辑。
However, the runtime cannot be expected to make any further judgments and must delegate this implication reasoning logic to the Permission class in question.
不过,不能指望运行时进行进一步的判断,并且必须将这种隐含推断逻辑指派给所涉及的permission类。
The GenSequence class implements the core logic of the utility.
GenSequence类实现实用程序的核心逻辑。
This class handles any DistributedMap logic as well.
这个类还处理所有Distributed map逻辑。
This section will conclude by implementing the signature verification logic in the SecureXMLMessage class.
本节完成了在SecureXMLMessage类中实现签名验证逻辑。
应用推荐