the decision will depend on how you are going to use these classes. if you have many classes, some Invokable and some not, you might be better off with annotations, just pass the objects / classes and check the annotation. if you know that the classes you would pass would be Invokable, you could go with the token interface.
i.e. assuming you want to keep the behavior, not the method :-)
source
share