Object teams

from Wikipedia, the free encyclopedia

Object Teams is an aspect-oriented extension of Java , which was developed in cooperation between the Technical University of Berlin and the Fraunhofer Institute for Computer Architecture and Software Technology .

Object Teams (currently) consists of a compiler that translates Object Teams code for the Java runtime environment , a runtime package and full integration into Eclipse . Object Teams is essentially based on the concept of teams and roles. A pointcut language, as it is used (in a different form) in AspectJ to better control the selection of the basic classes and methods, is currently being developed.

Teams

Teams are more or less intelligent packages: They combine classes like packages , but also allow their own members and inheritance .

roll

Roles live within teams and are Java classes that can be linked to other classes - these are called the base. A role can use this binding to define callin and callout methods. Callin methods are methods that can be bound to base class methods in one of three ways. The callin method is called

  • with "before": immediately before calling the basic method,
  • with "after": immediately after calling the basic method and
  • with "replace": instead of calling the basic method

The base object is protected to a certain extent. The role cannot directly make calls to the base object. Such calls must be declared explicitly in the form of callout methods.

Web links