Package org.plyct.plyex.spring
Class PlyexSpring
- java.lang.Object
-
- org.plyct.plyex.spring.PlyexSpring
-
- All Implemented Interfaces:
PlyexPlugin
public class PlyexSpring extends java.lang.Object implements PlyexPlugin
TODO: wildcard paths
-
-
Constructor Summary
Constructors Constructor Description PlyexSpring()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Endpoint[]getEndpoints(java.lang.reflect.Method method)Rules as I understand them regarding Spring's (poorly documented) relationship between class-level and method-level annotations: - Cannot specify both path and value unless they're identical.
-
-
-
Method Detail
-
getEndpoints
public Endpoint[] getEndpoints(java.lang.reflect.Method method)
Rules as I understand them regarding Spring's (poorly documented) relationship between class-level and method-level annotations: - Cannot specify both path and value unless they're identical. - Paths in class @RequestMapping are prepended to paths in method mappings (all combinations). - Class @RequestMapping, method attribute is applied against all annotated methods (@RequestMapping or specific). Path of method annotation is exposed. - If Multiple method-specific annotations (@GetMapping, @DeleteMapping) are specified, only the first one is honored (use @RequestMapping with multiple methods for this case). - Optional path params are not supported (/orders/{orderId?}), instead use separate methods.- Specified by:
getEndpointsin interfacePlyexPlugin- Parameters:
method- java method- Returns:
- endpoints corresponding to method
-
-