I have a bunch of classes implementing an interface Job. Each of these classes have an annotation @Work(name="the corresponding name")
Each of those classes have different private fields which are injected using guice during construction. Now I want to create a mapping Map reading a config file which is something like this
- name: "test1"
worker_annotation = "annotation1"
- name: "test2"
worker_annotation = "annotation2"
- name: "test3"
worker_annotation = "annotation3"
So what this module needs to do is read this config file, get all the classes annotated with @Work annotation and create a map Map where the key string is corresponding to the name in the config file and Job is the corresponding class implementing the Job interface and being annotated with the corresponding Worker annotation.