Skip to content

Commit

Permalink
♻️ refactor: refactor codebase #2
Browse files Browse the repository at this point in the history
  • Loading branch information
pnguyen215 committed Sep 1, 2024
1 parent 23d95a2 commit 57ef0c5
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.clarify4j.config.annotation;
package org.clarify4j.common.annotation;

import java.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.clarify4j.config.annotation;
package org.clarify4j.common.annotation;

import java.lang.annotation.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
public class ExecutorSinceHandler {
protected static final Logger logger = LoggerFactory.getLogger(ExecutorSinceHandler.class);

@Around(value = "@annotation(org.clarify4j.config.annotation.ExecutorSince)")
@Around(value = "@annotation(org.clarify4j.common.annotation.ExecutorSince)")
public Object execute(ProceedingJoinPoint joinPoint) throws Throwable {
Date start = new Date();
Object proceed = joinPoint.proceed();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.aspectj.lang.reflect.MethodSignature;
import org.clarify4j.config.annotation.Saga;
import org.clarify4j.common.annotation.Saga;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.expression.EvaluationContext;
Expand All @@ -24,7 +24,7 @@ public class SagaHandler {
protected static final TemplateParserContext TEMPLATE_PARSER_CONTEXT = new TemplateParserContext("{{", "}}");
protected static final ExpressionParser EXPRESSION_PARSER = new SpelExpressionParser();

@Pointcut(value = "@annotation(org.clarify4j.config.annotation.Saga)")
@Pointcut(value = "@annotation(org.clarify4j.common.annotation.Saga)")
public void controller() {
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package org.clarify4j;

import org.clarify4j.config.annotation.ExecutorSince;
import org.clarify4j.common.annotation.ExecutorSince;
import org.junit.jupiter.api.Test;

import java.lang.annotation.Annotation;
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/test/groovy/org/clarify4j/SagaAspectTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import org.clarify4j.config.annotation.Saga;
import org.clarify4j.common.annotation.Saga;
import org.clarify4j.config.handler.SagaHandler;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand Down

0 comments on commit 57ef0c5

Please sign in to comment.