concept parent in category aspectj

appears as: parent, parents, parent
AspectJ in Action, Second Edition

This is an excerpt from Manning's book AspectJ in Action, Second Edition.

The following statement makes the weaver assign the AccessTracked interface as the parent of the MessageCommunicator class:

declare parents: MessageCommunicator implements AccessTracked;

For example, if the Account type is declared to have Entity as a parent, the AspectJ compiler lets an Account object be assigned to a variable of Entity type. The Java compiler, on the other hand, can’t understand the meaning behind a declaration expressed in an annotation and won’t allow such assignments without an explicit typecast. Therefore, you’ll see some significant differences in how declare parents is supported in the two syntaxes.

The support for declaring parents comes though the @DeclareMixin annotation. This annotation mixes an interface into a matching set of types and delegates the implementation to a specified object. To mix in a set of types, you annotate a factory method with this annotation and specify a type-pattern to select types being mixed-in as its value attribute. The return type of the method (which must be an interface) is mixed in with the matched types. The AspectJ weaver uses the object returned by the method to delegate the implementation for the mixed-in interface.

declare parents: ajia.banking.domain.* implements Serializable;