Interface AnnotationHandler

All Known Implementing Classes:
AbstractAnnotationHandler, AccessControlListAnnotationHandler, AddressBooksAnnotationHandler, AuthenticateAnnotationHandler, CalendarDateRangeQueryAnnotationHandler, CalendarInvitationsAnnotationHandler, CalendarInvitationsCTagAnnotationHandler, CalendarsAnnotationHandler, ChildOfAnnotationHandler, ChildrenOfAnnotationHandler, CommonPropertyAnnotationHandler, ContactDataAnnotationHandler, ContentTypeAnnotationHandler, CopyAnnotationHandler, CTagAnnotationHandler, DeleteAnnotationHandler, DisplayNameAnnotationHandler, DisplayNameSetterAnnotationHandler, FreeBusyQueryAnnotationHandler, GetAnnotationHandler, ICalDataAnnotationHandler, MakeCalendarAnnotationHandler, MakeCollectionAnnotationHandler, MoveAnnotationHandler, PostAnnotationHandler, PrincipalSearchAnnotationHandler, PutChildAnnotationHandler, RootAnnotationHandler, UsersAnnotationHandler

public interface AnnotationHandler
Common interface for handlers which implement the logic for annotations. Includes method handlers and property handlers
Author:
brad
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the annotation class that this handler handles
    List the methods found when parsing annotations on the controller
    Return any HTTP methods which this annotation handler supports
    boolean
    Determine if this handler is able to support the given source object, ie if there is a controller method registered in this handler that supports the given source type
    void
    parseController(Object controller)
    Called on initialisation, the handler should look for annotations on the controller object and prepare itself to use them
  • Method Details

    • parseController

      void parseController(Object controller)
      Called on initialisation, the handler should look for annotations on the controller object and prepare itself to use them
      Parameters:
      controller -
    • getSupportedMethods

      Request.Method[] getSupportedMethods()
      Return any HTTP methods which this annotation handler supports
      Returns:
    • isCompatible

      boolean isCompatible(Object source)
      Determine if this handler is able to support the given source object, ie if there is a controller method registered in this handler that supports the given source type
      Parameters:
      source -
      Returns:
    • getControllerMethods

      List<ControllerMethod> getControllerMethods()
      List the methods found when parsing annotations on the controller
      Returns:
    • getAnnoClass

      Class getAnnoClass()
      Get the annotation class that this handler handles
      Returns: