What is an aspect?
Aspects are a new class-like language element that has been added to Java by AspectJ. Aspects are how developers encapsulate concerns that cut across classes, the natural unit of modularity in Java. Aspects are similar to classes because… • aspects have type • aspects can extend classes and other aspects • aspects can be abstract or concrete • non-abstract aspects can be instantiated • aspects can have static and non-static state and behavior • aspects can have fields, methods, and types as members • the members of non-privileged aspects follow the same accessibility rules as those of classes Aspects are different than classes because… • aspects can additionally include as members pointcuts, advice, and inter-type declarations; • aspects can be qualified by specifying the context in which the non-static state is available • aspects can’t be used interchangeably with classes • aspects don’t have constructors or finalizers, and they cannot be created with the new operator; they are a
Related Questions
- The self-concept is a pervasive and global aspect of an individual that is formed over a lifetime of experiences. How can nursing impact a clients self-concept?
- Im doing a report about currents (physical aspect, modelisation). Could you give me some adresses?
- Tell me a little more on the financial aspect of publishing with Lulu?