Git Product home page Git Product logo

dddplus / dddplus Goto Github PK

View Code? Open in Web Editor NEW
295.0 18.0 104.0 9.25 MB

🔥 A lightweight DDD(Domain Driven Design) Enhancement Framework for complex business architecture!轻量级DDD增强框架!

Home Page: https://github.com/funkygao/cp-ddd-framework

License: Apache License 2.0

Makefile 0.19% Java 99.81%
ddd ddd-architecture business-architecture java extension enterprise-architecture domain-driven-development complex-business-architecture framework productivity-tools

dddplus's Introduction

DDDplus

A lightweight DDD(Domain Driven Design) enhancement framework for forward/reverse business modeling, supporting complex system architecture evolution!

CI Javadoc Maven Central Requirement Coverage Status Mentioned in Awesome DDD Gitter chat

Languages: English | 中文


What is DDDplus?

DDDplus, formerly named cp-ddd-framework(cp means Central Platform:中台), is a lightweight DDD(Domain Driven Design) enhancement framework for forward/reverse business modeling, supporting complex system architecture evolution!

It captures DDD missing concepts and patches the building block. It empowers building domain model with forward and reverse modeling. It visualizes the complete domain knowledge from code. It connects frontline developers with (architect, product manager, business stakeholder, management team). It makes (analysis, design, design review, implementation, code review, test) a positive feedback closed-loop. It strengthens building extension oriented flexible software solution. It eliminates frequently encountered misunderstanding of DDD via thorough javadoc for each building block with detailed example.

In short, the 3 most essential plus are:

  1. patch DDD building blocks for pragmatic forward modeling, clearing obstacles of DDD implementation
  2. offer a reverse modeling DSL, visualizing complete domain knowledge from code
  3. provide extension point with multiple routing mechanism, suited for complex business scenarios

Current status

Used for several complex critical central platform projects in production environment.

Showcase

A full demo of DDDplus forward/reverse modeling ->

Quickstart

Forward modeling

<dependency>
    <groupId>io.github.dddplus</groupId>
    <artifactId>dddplus-runtime</artifactId>
</dependency>

Integration with SpringBoot

@SpringBootApplication(scanBasePackages = {"${your base packages}", "io.github.dddplus"})
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class);
    }
}

Reverse Modeling

Please check out the 《step by step guide》.

<dependency>
    <groupId>io.github.dddplus</groupId>
    <artifactId>dddplus-spec</artifactId>
</dependency>

Annotate your code With DSL, DDDplus will parse AST and render domain model in multiple views.

mvn io.github.dddplus:dddplus-maven-plugin:model \
    -DrootDir=${colon separated source code dirs} \
    -DplantUml=${target business model in svg format} \
    -DtextModel=${target business model in txt format}

Architecture Guard

mvn io.github.dddplus:dddplus-maven-plugin:enforce \
    -DrootPackage={your pkg} \
    -DrootDir={your src dir}

Known Issues

  • reverse modeling assumes unique class names within a code repo

Contribution

You are welcome to contribute to the project with pull requests on GitHub.

If you find a bug or want to request a feature, please use the Issue Tracker.

For any question, you can use Gitter Chat to ask.

Licensing

DDDplus is licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

dddplus's People

Contributors

carllhw avatar dependabot[bot] avatar funkygao avatar lxxawfl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dddplus's Issues

DomainArtifacts extensions 不全

this.extensions = new ArrayList<>();
for (Map.Entry<Class<? extends IDomainExtension>, List<PatternDef>> entry : InternalIndexer.sortedPatternMap.entrySet()) {
final Extension extension = new Extension(entry.getKey());
for (PatternDef patternDef : entry.getValue()) {
extension.getPatterns().add(new Pattern(patternDef.getCode(), patternDef.getName()));
}
for (PartnerDef partnerDef : InternalIndexer.partnerDefMap.values()) {
if (partnerDef.getExtension(extension.ext) != null) {
// 该前台实现了该扩展点
extension.getPartners().add(new Partner(partnerDef.getCode(), partnerDef.getName()));
}
}
this.extensions.add(extension);
}

有的拓展只在Partner而Pattern没有实现,这种就不会放到extensions里了

Spring Boot 1.5.22.RELEASE 无法触发startupListener

if (event.getApplicationContext().getParent() == null) {

event.getApplicationContext()为AnnotationConfigApplicationContext
event.getApplicationContext().getParent()为AnnotationConfigEmbeddedWebApplicationContext
event.getApplicationContext().getParent().getParent()为AnnotationConfigApplicationContext
event.getApplicationContext().getParent().getParent().getParent()才为null

Wanted: who's using DDDplus

Who is Using DDDplus

Thanks sincerely for constantly using and supporting DDDplus. We will try our best to keep DDDplus better, and keep growing community.

You can refer to the following sample answer for the format:

* Orgnizatioin: Your company name
* Contact: [email protected]
* Scenario: How DDDplus is used in your business

Thanks again for your participation !
DDDplus Team

谁在使用 DDDplus

诚挚地感谢每一位持续关注并使用 DDDplus 的朋友。我们会持续投入,把 DDDplus 变得更好,把 DDDplus 社区和生态变得更加繁荣。

您可以参考下面的样例来提供您的信息:

组织:贵公司名称
联系方式:[email protected]
业务场景:贵公司是如何使用 DDDplus 的

再次感谢你的参与!
DDDplus 团队

[discuss] What do you want in DDDplus 1.2.0

The purpose of this issue is to discuss what you think should be added in DDDplus 1.2.0, such as features, bugfixes for known problems, and code refactoring optimizations.

关于Step的流程编排被废弃

Step的流程编排被废弃,是不是想引入第三方的流程引擎,但是Domain不能依赖于其他框架,是不是考虑在重写这块的实现。

dddplus-plugin

dddplus-plugin目前在maven仓库版本为0.1.0. 建议推送github上的统一版本,如1.1.1等

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.