Community
Participate
Working Groups
It can be useful for an ExtendedObjectSupplier to be able to retrieve the injection site objects (i.e., the method object for MethodRequestor or the field object for the FieldRequestor) and the associated annotations. A supplier may use these annotations to further refine or alter their behaviour or the objects to be injected.
Expose the java.lang.reflect.Method and java.lang.reflect.Field object, and their annotations, on MethodRequestor and FieldRequestor. These *Requestor implementations are internal classes. https://git.eclipse.org/r/22833
Revised the implementation to expose the requestor location on the Requestor class. Requestor is now parameterized with a type that must be an AnnotationElement (e.g., Class, Field, Method, Constructor). All Requestor subclasses now provide the relevant requestor location. This information is useful for ExtendedObjectSuppliers if they wish to examine other annotations on the requesting site. The various *Requestor classes are internal classes, so this change does not change API. Verified all tests pass. Committed as: http://git.eclipse.org/c/platform/eclipse.platform.runtime.git/commit/?id=f27cc3181ace69e242f177ccc3eefd63e2b55a5f