Class 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PlyexSpring

        public PlyexSpring()
    • 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:
        getEndpoints in interface PlyexPlugin
        Parameters:
        method - java method
        Returns:
        endpoints corresponding to method