Skip to content

Commit 1be6c7d

Browse files
Turn internals into components
1 parent d866fd9 commit 1be6c7d

26 files changed

Lines changed: 624 additions & 504 deletions

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/ProblemAutoConfiguration.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
import io.github.problem4j.jackson2.ProblemModule;
2020
import io.github.problem4j.spring.web.format.DefaultProblemFormat;
2121
import io.github.problem4j.spring.web.format.ProblemFormat;
22+
import io.github.problem4j.spring.web.parameter.ProblemParameterConfiguration;
2223
import io.github.problem4j.spring.web.processor.DefaultProblemPostProcessor;
2324
import io.github.problem4j.spring.web.processor.ProblemPostProcessor;
2425
import io.github.problem4j.spring.web.resolver.ProblemResolver;
@@ -38,7 +39,7 @@
3839
@EnableConfigurationProperties({ProblemProperties.class})
3940
@ConditionalOnProperty(name = "problem4j.enabled", matchIfMissing = true)
4041
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.ANY)
41-
@Import({ProblemResolverConfiguration.class})
42+
@Import({ProblemParameterConfiguration.class, ProblemResolverConfiguration.class})
4243
public class ProblemAutoConfiguration {
4344

4445
/**

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/context/AttributeSupport.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
*/
1515
package io.github.problem4j.spring.web.context;
1616

17+
import io.github.problem4j.core.ProblemContext;
18+
1719
/**
1820
* Utility class providing constants and helper methods for tracing support within the Problem4J.
1921
*/
@@ -27,7 +29,7 @@ public final class AttributeSupport {
2729
* sharing contextual information (such as trace identifiers or additional diagnostic data)
2830
* between components involved in problem handling.
2931
*/
30-
public static final String PROBLEM_CONTEXT_ATTRIBUTE = "io.github.problem4j.spring.web.traceId";
32+
public static final String PROBLEM_CONTEXT_ATTRIBUTE = ProblemContext.class.getName();
3133

3234
private AttributeSupport() {}
3335
}

problem4j-spring-web/src/main/java/io/github/problem4j/spring/web/internal/ViolationResolver.java

Lines changed: 0 additions & 285 deletions
This file was deleted.

0 commit comments

Comments
 (0)