Annotations and Inheritance

back to index

Dynject uses the following rules when handling annotations that are applied to the same method along the inheritance/interface chain:

As a practical example, consider the following diagram:

 

Annotations and inheritance

The annotations that Dynject will consider as applicable to the "Property" property in SomeClass are:

Exactly the same logic is applied to annotations present in parameters