Skip to content
Snippets Groups Projects
Commit fcc4319f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-4589 rename logging

parent 2d6f2ddb
No related branches found
No related tags found
No related merge requests found
...@@ -32,11 +32,6 @@ public class AspectPointcuts { ...@@ -32,11 +32,6 @@ public class AspectPointcuts {
// aspect pointcut - no implementation needed // aspect pointcut - no implementation needed
} }
@Pointcut("within(de.itvsh..*)")
void anythingInKOP() {
// aspect pointcut - no implementation needed
}
@Pointcut("within(de.ozgcloud..*)") @Pointcut("within(de.ozgcloud..*)")
void anythingInOzgCloud() { void anythingInOzgCloud() {
// aspect pointcut - no implementation needed // aspect pointcut - no implementation needed
......
...@@ -36,6 +36,6 @@ import static java.lang.annotation.RetentionPolicy.*; ...@@ -36,6 +36,6 @@ import static java.lang.annotation.RetentionPolicy.*;
@Retention(RUNTIME) @Retention(RUNTIME)
@Documented @Documented
@InterceptorBinding @InterceptorBinding
public @interface KopLogging { public @interface OzgCloudLogging {
} }
...@@ -32,7 +32,7 @@ import org.springframework.stereotype.Component; ...@@ -32,7 +32,7 @@ import org.springframework.stereotype.Component;
@Aspect @Aspect
@Component @Component
public class KopLoggingAspect extends AspectPointcuts { public class OzgCloudLoggingAspect extends AspectPointcuts {
@Before("anyPublicServiceMethod()") @Before("anyPublicServiceMethod()")
public void onServiceMethod(JoinPoint joinPoint) { public void onServiceMethod(JoinPoint joinPoint) {
......
...@@ -28,10 +28,10 @@ import jakarta.interceptor.AroundInvoke; ...@@ -28,10 +28,10 @@ import jakarta.interceptor.AroundInvoke;
import jakarta.interceptor.Interceptor; import jakarta.interceptor.Interceptor;
import jakarta.interceptor.InvocationContext; import jakarta.interceptor.InvocationContext;
@KopLogging @OzgCloudLogging
@Priority(10) @Priority(10)
@Interceptor @Interceptor
public class KopLoggingInterceptor { public class OzgCloudLoggingInterceptor {
@AroundInvoke @AroundInvoke
Object logging(InvocationContext context) throws Exception { Object logging(InvocationContext context) throws Exception {
......
...@@ -33,14 +33,14 @@ import org.mockito.Mock; ...@@ -33,14 +33,14 @@ import org.mockito.Mock;
import org.mockito.MockedStatic; import org.mockito.MockedStatic;
import de.ozgcloud.common.logging.AspectLoggingUtils; import de.ozgcloud.common.logging.AspectLoggingUtils;
import de.ozgcloud.common.logging.KopLoggingInterceptor; import de.ozgcloud.common.logging.OzgCloudLoggingInterceptor;
import static org.assertj.core.api.Assertions.*; import static org.assertj.core.api.Assertions.*;
import static org.mockito.Mockito.*; import static org.mockito.Mockito.*;
class KopLoggingInterceptorTest { class OzgCloudLoggingInterceptorTest {
private final KopLoggingInterceptor interceptor = new KopLoggingInterceptor(); private final OzgCloudLoggingInterceptor interceptor = new OzgCloudLoggingInterceptor();
@DisplayName("Logging") @DisplayName("Logging")
@Nested @Nested
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment