You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/AbstractResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/PrintedResultResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/Py4JResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/RestrictedPythonResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/ResultResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/condition/SpelythonResolverCondition.java
Copy file name to clipboardExpand all lines: spring-boot-python-executor-autoconfigure/src/main/java/io/w4t3rcs/python/config/PythonResolverConfiguration.java
+124-4Lines changed: 124 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -14,27 +14,109 @@
14
14
importorg.springframework.core.annotation.Order;
15
15
16
16
importjava.util.List;
17
-
18
17
/**
19
-
* Main configuration class for {@link PythonResolver}.
20
-
* This class sets up the core infrastructure for {@link PythonResolver} bean declaration.
18
+
* Main configuration class for {@link PythonResolver} beans.
19
+
* <p>
20
+
* This configuration class defines and registers various {@link PythonResolver} implementations
21
+
* as Spring beans, each conditionally created based on specific environment properties or
22
+
* declared resolver conditions.
23
+
* </p>
24
+
* <p>
25
+
* Each {@link PythonResolver} bean is assigned an order that determines the sequence of
26
+
* resolver application when used collectively.
27
+
* </p>
28
+
* <p>
29
+
* The configuration also provides a default {@link PythonResolverHolder} bean implementation
30
+
* {@link BasicPythonResolverHolder} if no other {@link PythonResolverHolder} bean is present
31
+
* in the Spring context.
32
+
* </p>
33
+
*
34
+
* <pre>{@code
35
+
* // Example of enabling the Spelython and Result resolvers via application.properties:
36
+
* spring.python.resolver.declared=spelython, result
37
+
*
38
+
* // Example of enabling the Py4J resolver:
39
+
* spring.python.resolver.declared=py4j
40
+
* spring.python.py4j.enabled=true
41
+
*
42
+
* // Example usage of injected PythonResolverHolder in a service:
0 commit comments