AspectOriented Programming: Fad or the Future - PowerPoint PPT Presentation

1 / 9
About This Presentation
Title:

AspectOriented Programming: Fad or the Future

Description:

Aspect-Oriented Programming: Fad or the Future. Karl Lieberherr. Northeastern University ... Fad or Future. Future! Many issues to be resolved. Correctness ... – PowerPoint PPT presentation

Number of Views:38
Avg rating:3.0/5.0
Slides: 10
Provided by: karllie
Learn more at: https://www2.ccs.neu.edu
Category:

less

Transcript and Presenter's Notes

Title: AspectOriented Programming: Fad or the Future


1
Aspect-Oriented ProgrammingFad or the Future
  • Karl Lieberherr
  • Northeastern University
  • UBS AG

2
AOP Factoring out similarities that cut across
abstractions
C1
Adapters
Specific behavior 1
s1
C2
P1
C3
C6
P2
s2
Specific behavior 2 similar to behavior 1
Generic behavior Collaborations
C7
C8
AOP solution less redundancy, requires tool
support
C9
Traditional solution redundancy
3
The goal Tangling control
  • Tangling cannot be eliminated, it can only be
    reduced and localized.
  • The goal is to encapsulate program enhancements
    and minimize dependencies between them (loose
    coupling).

4
definition
result
deployment
5
Collaborations (APPC)
minimal assumptions on application structure
Participant Graph
P1
P3
P2

required interfaces
Behavior Definition
P
P1
add new functionality enhance the required
provided everything declared public

...
written to the PG similar to an OO
program is written to a concrete class graph

P3
...
6
Deployment/Composition of Collaborations
  • Specified by adapters separately from
    collaborations
  • Adapters specify crosscutting using
  • regular-expressions to express sets of method
    names and class names and interface names
  • code where simple method name mapping is not
    enough
  • graphs and regular expression-like constructs for
    mapping graphs

7
Design issues
  • What goes into collaborations and what goes into
    adapters?
  • Depends on reuse of collaboration C.
  • Consider n reuses of the same collaboration
    A1(C), A2(C), ,An(C)
  • The goal is to put enough information into
    collaboration C so that in the adapters contain
    minimal code duplication.

8
Rough correspondences
9
Fad or Future
  • Future!
  • Many issues to be resolved
  • Correctness
  • aspect
  • composition of aspects
  • conflicts between aspects
  • Trying to unify the existing approaches taxonomy
    of the design space
Write a Comment
User Comments (0)
About PowerShow.com