Is it possible to set the parameter of an annotation not statically but by a variable or another annotation?
@Component
public class Test
{
@Value ("${my.rate}")
private int myrate;
@Scheduled (fixedRate = myrate) // like so
public void run ()
{
EDIT
What I try to do is pretty common - I think.
I have a cyclic action (run) and the rate of the cycle should be parametrized (in application.properties).