Skip to content

Commit 87c449a

Browse files
committed
update 2.1.3
1 parent e5037c0 commit 87c449a

File tree

9 files changed

+16
-16
lines changed

9 files changed

+16
-16
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<groupId>com.codingapi.springboot</groupId>
1414
<artifactId>springboot-parent</artifactId>
15-
<version>2.1.2</version>
15+
<version>2.1.3</version>
1616

1717
<url>https://github.com/codingapi/springboot-framewrok</url>
1818
<name>springboot-parent</name>

springboot-starter-data-fast/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.1.2</version>
8+
<version>2.1.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-id-generator/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.1.2</version>
8+
<version>2.1.3</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-security-jwt/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.1.2</version>
9+
<version>2.1.3</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security-jwt</artifactId>

springboot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-parent</artifactId>
8-
<version>2.1.2</version>
8+
<version>2.1.3</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99
@Getter
1010
@ToString(callSuper = true)
11-
public class FieldChangeEvent extends DomainEvent {
11+
public class DomainChangeEvent extends DomainEvent {
1212

1313
/**
1414
* 字段名称
@@ -23,7 +23,7 @@ public class FieldChangeEvent extends DomainEvent {
2323
*/
2424
private final Object newValue;
2525

26-
public FieldChangeEvent(Object entity, String fieldName, Object oldValue, Object newValue) {
26+
public DomainChangeEvent(Object entity, String fieldName, Object oldValue, Object newValue) {
2727
super(entity);
2828
this.fieldName = fieldName;
2929
this.oldValue = oldValue;
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package com.codingapi.springboot.framework.domain.proxy;
22

3-
import com.codingapi.springboot.framework.domain.event.FieldChangeEvent;
3+
import com.codingapi.springboot.framework.domain.event.DomainChangeEvent;
44
import com.codingapi.springboot.framework.event.EventPusher;
55
import lombok.extern.slf4j.Slf4j;
66
import org.springframework.beans.BeanUtils;
@@ -18,7 +18,7 @@
1818
* 实体代理
1919
*/
2020
@Slf4j
21-
public class FieldValueInterceptor implements MethodInterceptor {
21+
public class DomainChangeInterceptor implements MethodInterceptor {
2222

2323
// 目标类
2424
private final Class<?> targetClass;
@@ -34,7 +34,7 @@ public class FieldValueInterceptor implements MethodInterceptor {
3434
// 目标类属性值
3535
private final Map<String, Object> fields;
3636

37-
public FieldValueInterceptor(Class<?> targetClass, Object... args) throws NoSuchMethodException,
37+
public DomainChangeInterceptor(Class<?> targetClass, Object... args) throws NoSuchMethodException,
3838
InvocationTargetException, InstantiationException, IllegalAccessException {
3939
this.targetClass = targetClass;
4040
this.args = args;
@@ -146,6 +146,6 @@ private void compareAndUpdateField() throws InvocationTargetException, IllegalAc
146146
}
147147

148148
private void pushEvent(String fieldName, Object oldValue, Object newValue) {
149-
EventPusher.push(new FieldChangeEvent(target,fieldName,oldValue,newValue));
149+
EventPusher.push(new DomainChangeEvent(target,fieldName,oldValue,newValue));
150150
}
151151
}

springboot-starter/src/main/java/com/codingapi/springboot/framework/domain/proxy/DomainProxyFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
public class DomainProxyFactory {
1212

1313
public static <T> T create(Class<T> entityClass, Object... args) {
14-
FieldValueInterceptor interceptor = null;
14+
DomainChangeInterceptor interceptor = null;
1515
try {
16-
interceptor = new FieldValueInterceptor(entityClass, args);
16+
interceptor = new DomainChangeInterceptor(entityClass, args);
1717
} catch (NoSuchMethodException | InvocationTargetException | InstantiationException | IllegalAccessException e) {
1818
throw new RuntimeException(e);
1919
}
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package com.codingapi.springboot.framework.handler;
22

3-
import com.codingapi.springboot.framework.domain.event.FieldChangeEvent;
3+
import com.codingapi.springboot.framework.domain.event.DomainChangeEvent;
44
import lombok.extern.slf4j.Slf4j;
55

66
@Slf4j
77
@Handler
8-
public class EntityFiledChangeHandler implements IHandler<FieldChangeEvent>{
8+
public class EntityFiledChangeHandler implements IHandler<DomainChangeEvent>{
99

1010
@Override
11-
public void handler(FieldChangeEvent event) {
11+
public void handler(DomainChangeEvent event) {
1212
log.info("field change event -> {}",event);
1313
}
1414
}

0 commit comments

Comments
 (0)