Annotation Interface Function


@Retention(RUNTIME) @Target(METHOD) @Documented @Api public @interface Function
Annotation used to mark single methods as function overrides. @Function annotated methods must be defined in @Functions annotated class.
Author:
RafaƂ Nowacki 16 gru 2015
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Accessibility of function.
    boolean
    Marks function, which returned value depends not only from function input arguments but also from invocation context.
    Function name, used as unique identifier.
  • Element Details

    • value

      String value
      Function name, used as unique identifier. Defaults to method name annotated with this annotation.
      Returns:
      function name
      Default:
      ""
    • context

      boolean context
      Marks function, which returned value depends not only from function input arguments but also from invocation context. For example context functions are `currentDate`, `currentUser`.
      Default:
      false
    • accessibility

      Accessibility of function. Most functions are available on server and browser.
      Default:
      ALL