Hi all,
I sometimes use this annotation to initialize e.g. parameters:
@Plugin(type = Command.class, initializer = "init")
public class MyCommand implements Command {
private void init() {
...
}
.. but I don't like it too much because it's matching a String with a method name and the compiler won't tell me if there's a mismatch.
Would it be a good idea to try to make this do the same:
@Plugin(type = Command.class)
public class MyCommand implements Command, Initializable {
@Override
public void initialize() {
...
}