资 源 简 介
Bastion
Bastion is a Java framework for implementing Domain-Driven Designed (DDD) applications.
Goal
Bastion"s goal is to provide an environment in which both domain classes and technical services are completely decoupled and independant. Any technical service a domain class needs, will be triggered indirectly by throwing an event from the domain class. The framework will dispatch the event to a listening adapter. The adapter is configured with a corresponding technical service, which it will call to take the required action. Any results can be placed back into the event object, which the domain class can examine upon return.
In an environment like this, the domain classes should be able to focus completely on implementing business logic. They have neither knowledge of nor dependency on anything outside the business domain, like for example persistancy services. These technical services on the other hand, are independant of the domain. They co