摘要
首先介绍了Drools规则引擎和领域专用语言DSL的基本概念,然后通过实例说明了DSL以类自然语言的方式来构建业务层代码,详细阐述了领域专用语言在Drools中的应用来说明它的优点。通过DSL的应用不仅降低了业务逻辑与应用程序的耦合度,而且能以更好的方式来处理业务需求和数据模型的变化,便于系统的维护。
In this thesis, the basic concept of rule engine and domain specific language about Drools is introduced at first. Then, we describe DSL in detail with some examples in order to prove the advantage of DSL. Not only can DSL reduce the degree of coupling between business logic layer and application layer, but also it deals with changes to the requirements or changes to the data model in a much better way. It is helpful to the maintenance of the system.
出处
《电脑开发与应用》
2012年第2期8-11,共4页
Computer Development & Applications