org.elkoserver.foundation.json
Annotation Type JSONMethod


@Documented
@Retention(value=RUNTIME)
@Target(value={METHOD,CONSTRUCTOR})
public @interface JSONMethod

Annotation to mark methods as targets for JSON method dispatch and constructors as decoders for JSON-driven object creation. The annotation value carries the JSON property names corresponding to the parameters in the method or constructor parameter list.


Optional Element Summary
 String[] value
          Array of parameter names matching JSON parameter names to corresponding parameter positions in the declared argument list.
 

value

public abstract String[] value
Array of parameter names matching JSON parameter names to corresponding parameter positions in the declared argument list.

Default:
{}