﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9476	[Patch draft] Annotations for remote control implementation	simon04	team	"I was playing around a bit with annotations. The goal would be to make implementing new remote control handlers more fun. A handler is an arbitrary method annotated with `@RequestMethod` and its parameters annotated with `@RequestParameter`. The `load_object` could look like:

{{{
#!java
@RequestMethod(
        command = ""load_object"",
        usage = ""Download objects with given id."",
        usageExamples = {""/load_object?new_layer=true&objects=w106159509"",
                ""/load_object?new_layer=true&objects=r2263653&relation_members=true""
        })
public static void loadObject(
                          @RequestParameter(name = ""objects"") String objects,
                          @RequestParameter(name=""new_layer"", optional = false) String new_layer,
                          @RequestParameter(name=""relation_members"", optional = false) String relation_members) {
// implementation follows
}
}}}

A working, but unfinished patch is attached."	enhancement	new	normal		Core remotecontrol				
