{"action":"created","issue":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/1550","labels_url":"https://api.github.com/repos/excilys/androidannotations/issues/1550/labels{/name}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1550/comments","events_url":"https://api.github.com/repos/excilys/androidannotations/issues/1550/events","html_url":"https://github.com/excilys/androidannotations/issues/1550","id":106370045,"number":1550,"title":"@Background delay as parameter","user":{"login":"LouisCAD","id":6975237,"avatar_url":"https://avatars.githubusercontent.com/u/6975237?v=3","gravatar_id":"","url":"https://api.github.com/users/LouisCAD","html_url":"https://github.com/LouisCAD","followers_url":"https://api.github.com/users/LouisCAD/followers","following_url":"https://api.github.com/users/LouisCAD/following{/other_user}","gists_url":"https://api.github.com/users/LouisCAD/gists{/gist_id}","starred_url":"https://api.github.com/users/LouisCAD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LouisCAD/subscriptions","organizations_url":"https://api.github.com/users/LouisCAD/orgs","repos_url":"https://api.github.com/users/LouisCAD/repos","events_url":"https://api.github.com/users/LouisCAD/events{/privacy}","received_events_url":"https://api.github.com/users/LouisCAD/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-14T15:43:55Z","updated_at":"2015-09-16T10:35:01Z","closed_at":null,"body":"Hi!\r\n\r\nI'm using `@Background` annotation on my methods with a specific delay, but this delay is tied to the source code for now and I can't change the delay before which to run my method at run time. The app I'm working on can download a configuration from a server, specifying varying delays for some actions, but  it implies boilerplate for now...\r\n\r\nCould you add support for a `int delay` optional parameter of the method itself, so we aren't forced to provide delay as a constant in `@Background` annotation?\r\n\r\nI would be very grateful if you add this little change, expanding again AA possibilities.\r\n\r\nAnyway, thanks very much for this awesome library.\r\n\r\nHave a nice day!\r\n\r\nLouis CAD"},"comment":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/comments/140700676","html_url":"https://github.com/excilys/androidannotations/issues/1550#issuecomment-140700676","issue_url":"https://api.github.com/repos/excilys/androidannotations/issues/1550","id":140700676,"user":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"created_at":"2015-09-16T10:35:01Z","updated_at":"2015-09-16T10:35:01Z","body":"Yeah, this is the other solution, maybe it would be better to inject an `@EBean` as the delay provider like in some `@Rest` parameters.\r\nBut sorry, i still think it is a bad idea. \r\n\r\nAbout plugins: we created the plugin system, so you add new annotations much easier than creating a totally new annotation processor. If you check out the `develop` branch, you can see that some of AA's functionality has been moved to plugins. Of course, creating a new plugin still require some knowledge of codemodel and the javax modelling api."}}