Annotation Interface Functions


@Retention(RUNTIME) @Target(TYPE) @Documented @Api public @interface Functions
Every class annotated with this annotation is treated as functions container. Every method annotated with @Function annotation will be registered as function. These functions can be later used as e.g. component parameter value.

Created functions can be accessed using FunctionRegistry.

Example: @Functions public class DateFunctions { @Function public LocalDate currentDate() { return LocalDate.now(); } }

Author:
RafaƂ Nowacki 16 gru 2015