@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Api public @interface Functions
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();
}
}
Copyright © 2019 Suncode. All rights reserved.