79312368

Date: 2024-12-27 16:55:59
Score: 1.5
Natty:
Report link

I would store the token in a field value of a @Component classes if the value doesn't change over time, and fill in those fields upon constructing the bean.

However if you still want to do it the way you asked, the interface send method can look like this

void send(Object... arguments);

and thus you get a variable number of arguments in both classes.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Component
  • Low reputation (1):
Posted by: Uros Poznan