From Oracle:
Annotations, a form of metadata, provide data about a program that is not part of the program itself. Annotations have no direct effect on the operation of the code they annotate.
and from wikipedia:
In computing, aspect-oriented programming (AOP) is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns. AOP forms a basis for aspect-oriented software development.
My question is: If I use a annotation like @EJB
, can I say that I am using AOP? Because it seems like @EJB
is a cross-cutting concern to me (e.g. resource looking up).
Please explain if yes or no, or sometimes an annotation is AOP.