@Inherited @Retention(RUNTIME) @Target(METHOD) public @interface NeovimRequestHandler
Annotation used to mark a method as a request handler That means that this method will be called when request with name matching value of this annotation arrives

To actually use this, object with this method needs to be registered in NeovimHandlerManager

Handlers with zero arguments are supported, as well as single argument handlers with argument of RequestMessage type or handlers whose arguments can be mapped to from request arguments using mapper provided to NeovimHandlerManager

Methods return value will be used to respond to attached Neovim instance If methods throws an exception, it will be returned as RpcError, but only if it is instance of NeovimRequestException or NeovimRequestValidationException

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Name of request this method will handle By default fully qualified method name is used
  • Element Details

    • value

      String value
      Name of request this method will handle By default fully qualified method name is used
      Returns:
      name of request
      Default:
      ""