Skip to content

Commit

Permalink
0.54
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Oct 19, 2023
1 parent 3d464a1 commit addfdfa
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ DamiBus,专为本地多模块之间通讯解耦而设计(尤其是未知模
<dependency>
<groupId>org.noear</groupId>
<artifactId>dami</artifactId>
<version>0.53</version>
<version>0.54</version>
</dependency>
```

Expand Down
4 changes: 2 additions & 2 deletions dami-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.noear</groupId>
<artifactId>dami-parent</artifactId>
<version>0.53</version>
<version>0.54</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down Expand Up @@ -39,7 +39,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<dami.version>0.53</dami.version>
<dami.version>0.54</dami.version>
<junit4.version>4.13.2</junit4.version>
<junit5.version>5.9.1</junit5.version>
<slf4j.version>2.0.9</slf4j.version>
Expand Down
2 changes: 1 addition & 1 deletion dami-solon-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<dependency>
<groupId>org.noear</groupId>
<artifactId>dami-solon-plugin</artifactId>
<version>0.53</version>
<version>0.54</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion dami-solon-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.noear</groupId>
<artifactId>dami-parent</artifactId>
<version>0.53</version>
<version>0.54</version>
<relativePath>../dami-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion dami-springboot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<dependency>
<groupId>org.noear</groupId>
<artifactId>dami-springboot-starter</artifactId>
<version>0.53</version>
<version>0.54</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion dami-springboot-starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.noear</groupId>
<artifactId>dami-parent</artifactId>
<version>0.53</version>
<version>0.54</version>
<relativePath>../dami-parent/pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion dami/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<dependency>
<groupId>org.noear</groupId>
<artifactId>dami</artifactId>
<version>0.53</version>
<version>0.54</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion dami/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.noear</groupId>
<artifactId>dami-parent</artifactId>
<version>0.53</version>
<version>0.54</version>
<relativePath>../dami-parent/pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.util.concurrent.atomic.AtomicLong;

/**
* Id 生成器默认器
* Id 生成器默认实现
*
* @author noear
* @since 1.0
Expand Down
18 changes: 18 additions & 0 deletions dami/src/main/java/org/noear/dami/bus/impl/IdGeneratorGuid.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package org.noear.dami.bus.impl;

import org.noear.dami.bus.IdGenerator;

import java.util.UUID;

/**
* Id 生成器 guid 实现
*
* @author noear
* @since 1.0
*/
public class IdGeneratorGuid implements IdGenerator {
@Override
public String generate() {
return UUID.randomUUID().toString().replace("-", "");
}
}
4 changes: 3 additions & 1 deletion dami/src/test/java/features/demo11_send/Demo11.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
import org.junit.jupiter.api.Test;
import org.noear.dami.bus.DamiBus;
import org.noear.dami.bus.DamiBusImpl;
import org.noear.dami.bus.impl.IdGeneratorGuid;

import java.util.concurrent.atomic.AtomicInteger;

public class Demo11 {
static String topic = "demo.hello";
//定义实例,避免单测干扰 //开发时用:Dami.bus()
DamiBus<String, String> busStr = new DamiBusImpl<>();
DamiBus<String, String> busStr = new DamiBusImpl<String,String>()
.idGenerator(new IdGeneratorGuid());

@Test
public void main() throws Exception {
Expand Down

0 comments on commit addfdfa

Please sign in to comment.