Separation of Concerns. AspectJ. What if the concerns are Cross-Cutting? SoC: Programming Paradigms. Key theme: Modularity and Encapsulation

Size: px
Start display at page:

Download "Separation of Concerns. AspectJ. What if the concerns are Cross-Cutting? SoC: Programming Paradigms. Key theme: Modularity and Encapsulation"

Transcription

1 Separation of Concerns and AspectJ EEC 625 Lecture #16 April 3, 2006 EEC 625: Software Design & Architecture Separation of Concerns Breaking a program into pieces that overlap in functionality as little as possible. It is, that one is willing to study in depth an aspect of one s subject matter in isolation for the sake of its own consistency, all the time knowing that one is occupying oneself only with one of the aspects. We know that a program must be correct and we can study it from that viewpoint only; we also know that it should be efficient and we can study its efficiency on another day, so to speak. In another mood we may ask ourselves whether, and if so: why, the program is desirable. Edsger Dijkstra EEC 625: Software Design & Architecture 1 SoC: Programming Paradigms Procedural Programming Procedures encapsulate different pieces of code. Each procedure is concerned only with a small piece of functionality. What if the concerns are Cross-Cutting? Can there be some concerns that cannot be cleanly modularized? What does one do with those? Object-Oriented Programming Classes and methods encapsulate different roles and associated operations. Key theme: Modularity and Encapsulation EEC 625: Software Design & Architecture 2 EEC 625: Software Design & Architecture 3 Example: A Simple Database A Sophisticated Database Consider a simple Database component on a server. Clients can query a Value corresponding to some Key in the database. Every query should be logged. Method logging on every method call Only authorized access is allowed. Client operation Search(k : Key) : V alue pre : k Database post : Search = Database[k] Search component Database Authenticate on every method call High availability is a key requirement. Fault-tolerance through replication; send every method call to three copies of object and vote on response EEC 625: Software Design & Architecture 4 EEC 625: Software Design & Architecture 5

2 Cross-cutting Concerns These concerns are all cross-cutting; they affect all methods; in the same way. Corollary: The implementation of such a cross-cutting concern should be modularized separately. Cross-cutting Concerns: Problems Code scattering Code tangling Several Solutions: Aspect-Oriented Programming, Software Containers, Subject-Oriented Programming,... EEC 625: Software Design & Architecture 6 EEC 625: Software Design & Architecture 7 Example: Logging in Tomcat Cost of Tangled Code redundant code same fragment of code in many places difficult to reason about non-explicit structure the big picture of the tangling isn t clear where is logging in org.apache.tomcat red shows lines of code that handle logging not in just one place not even in a small number of places difficult to change have to find all the code involved and be sure to change it consistently and be sure not to break it by accident EEC 625: Software Design & Architecture 8 EEC 625: Software Design & Architecture 9 Aspect-Oriented Programming crosscutting is inherent in complex systems The AOP Process crosscutting concerns have a clear purpose have a natural structure defined set of methods, module boundary crossings, lines of dataflow... capture crosscutting concerns explicitly... Component Aspect Aspect Weaver Final Code in a modular way with linguistic and tool support aspects are well-modularized crosscutting concerns EEC 625: Software Design & Architecture 10 EEC 625: Software Design & Architecture 11

3 What is an Aspect anyway? Aspect Weaving a property that cannot be cleanly encapsulated in a generalized procedure usually a non-functional element: logging, synchronization, caching developmental: used during the implementation phase by developer the process of combining the component and the aspect static: weaving occurs compile-time, source code transformation dynamic: run-time, aspect plug-in, performance consequences production: used for the final product as part of the design EEC 625: Software Design & Architecture 12 EEC 625: Software Design & Architecture 13 Anatomy of an Aspect Two main pieces: Where to add behavior: Join Points Pointcuts identify relevant join points What behavior is to be added: Advice Pointcuts Pointcuts pick out certain join points in the program flow. call(void Point.setXY(int, int)) A pointcut can be built out of other pointcuts with and, or, and not (spelled &&,, and!). pointcut move(): call(void Point.setXY(int, int)) call(void FigureElement.setP1(Point)) Pointcuts can be anonymous or named. EEC 625: Software Design & Architecture 14 EEC 625: Software Design & Architecture 15 Types of pointcuts Name-based crosscutting: Explicit naming of method call join point Property-based crosscutting: Specifying a pointcut in terms of properties of methods other than their exact name call(void Figure.make*(..)) call(public * FigureElement.*(..)) Types of pointcuts: Wildcards * denotes any number of characters expect period.. denotes any number of characters including any number of periods + denotes any subclass of a given type EEC 625: Software Design & Architecture 16 EEC 625: Software Design & Architecture 17

4 Signature Pattern * Type Signature Patterns Matched Types Type of name Types with name ending in Savings, Checking, etc. java.*.date Type Date in any direct subpackage of java java.util.date, java.sql.date java..* Any type in java package, and any subpackages javax..*model+ All types in javax package or its direct and indirect subpackages that have a name ending in Model and their subtypes. Operators and type signatures Signature Pattern!Vector Vector Hashtable javax..*model javax.swing.text.document Matched Types All types other than Vector Vector or Hashtable All types in the javax package that end in Model or javax.swing.text.document java.util.randomaccess+ All types that implement both && java.util.list+ the specified interfaces java.util.arraylist EEC 625: Software Design & Architecture 18 EEC 625: Software Design & Architecture 19 Join Point Kinded Pointcuts Pointcut Syntax Method execution execution(methodsignature) Method call call(methodsignature) Constructor exec execution(constructorsignature) Constructor call call(constructorsignature) Class initialization staticinitialization(typesignature) Field read access get(fieldsignature) Field write access set(fieldsignature) Exception handler handler(typesignature) Object init initialization(constructorsignature) Object pre-init preinitialization(constructorsignature) Advice execution adviceexecution() Control-Flow Based Pointcuts Capturing join points based on the control flow of join points captured by another pointcut. Pointcut cflow(call(*.debit(..)) cflowbelow(call(*.debit(..)) cflow(transactedops()) cflowbelow(execution(.new(..)) cflow(staticinitializer(bankingdatabase)) Description debit method in, including the call to debit() debit method in, excluding the call to debit() All join points in the control flow of the join points captured by the transactedops() pointcut constructor for excluding the call to the constructor itself All join points in the control flow during the class initialization of BankingDatabase EEC 625: Software Design & Architecture 20 EEC 625: Software Design & Architecture 21 Lexical-structure based pointcuts A lexical scope is a segment of source code, referring to the scope of the code as it was written, as opposed to the scope of the code when it is being executed (dynamic scope). Pointcut within() within(+) withincode(*.debit(..)) withincode(* *.getbalance(..)) Description and its subclasses any debit() method in any getbalance() method in any class that ends in Execution object pointcuts Match join points based on the types of the objects at execution time. this() All join points where this is of type target() All join points which are method calls, and the target of the method is of type EEC 625: Software Design & Architecture 22 EEC 625: Software Design & Architecture 23

5 Argument pointcuts Pointcuts based on types of arguments to a method, constructor, or exception handler. args(typepattern or ObjectIdentifier) Advice Next Time Programming using AspectJ EEC 625: Software Design & Architecture 24 EEC 625: Software Design & Architecture 25

2003 by Manning Publications Co. All rights reserved.

2003 by Manning Publications Co. All rights reserved. For online information and ordering of this and other Manning books, go to www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact: Special

More information

Course 6 7 November Adrian Iftene

Course 6 7 November Adrian Iftene Course 6 7 November 2016 Adrian Iftene adiftene@info.uaic.ro 1 Recapitulation course 5 BPMN AOP AOP Cross cutting concerns pointcuts advice AspectJ Examples In C#: NKalore 2 BPMN Elements Examples AOP

More information

AJDT: Getting started with Aspect-Oriented Programming in Eclipse

AJDT: Getting started with Aspect-Oriented Programming in Eclipse AJDT: Getting started with Aspect-Oriented Programming in Eclipse Matt Chapman IBM Java Technology Hursley, UK AJDT Committer Andy Clement IBM Java Technology Hursley, UK AJDT & AspectJ Committer Mik Kersten

More information

Specifying Pointcuts in AspectJ

Specifying Pointcuts in AspectJ Specifying Pointcuts in AspectJ Yi Wang Department of Computer Science Shanghai Jiao Tong University 800 Dongchuan Rd, Shanghai, 200240, China yi_wang@sjtu.edu.cn Jianjun Zhao Department of Computer Science

More information

Aspect-Oriented Programming and Aspect-J

Aspect-Oriented Programming and Aspect-J Aspect-Oriented Programming and Aspect-J TDDD05 Ola Leifer Most slides courtesy of Jens Gustafsson and Mikhail Chalabine Outline: Aspect-Oriented Programming New concepts introduced Crosscutting concern

More information

A Brief Introduction to Aspect-Oriented Programming. Historical View Of Languages. Procedural language Functional language Object-Oriented language

A Brief Introduction to Aspect-Oriented Programming. Historical View Of Languages. Procedural language Functional language Object-Oriented language A Brief Introduction to Aspect-Oriented Programming Historical View Of Languages Procedural language Functional language Object-Oriented language 1 Acknowledgements Zhenxiao Yang Gregor Kiczales Procedural

More information

A Brief Introduction to Aspect-Oriented Programming" Historical View Of Languages"

A Brief Introduction to Aspect-Oriented Programming Historical View Of Languages A Brief Introduction to Aspect-Oriented Programming" Historical View Of Languages" Procedural language" Functional language" Object-Oriented language" 1 Acknowledgements" Zhenxiao Yang" Gregor Kiczales"

More information

Aspect Oriented Programming with AspectJ. Ted Leung Sauria Associates, LLC

Aspect Oriented Programming with AspectJ. Ted Leung Sauria Associates, LLC Aspect Oriented Programming with AspectJ Ted Leung Sauria Associates, LLC twl@sauria.com Overview Why do we need AOP? What is AOP AspectJ Why do we need AOP? Modular designs are not cut and dried Responsibilities

More information

Mobile and Context-aware Interactive Systems

Mobile and Context-aware Interactive Systems Mobile and Context-aware Interactive Systems Gaëlle Calvary Grenoble INP Laboratoire d Informatique de Grenoble (LIG) Core concepts Principles Terminology For more information, see Sara Bouchenak s M1

More information

Introduction to. Bruno Harbulot. ESNW, the University of Manchester.

Introduction to. Bruno Harbulot. ESNW, the University of Manchester. Introduction to Aspect-Oriented Software Development Bruno Harbulot ESNW, the University of Manchester http://www.cs.man.ac.uk/~harbulob/ ELF Developers' Forum Manchester - October 2005 1/24 Presentation

More information

What is AOP? Business Logic Requirements Concern Identifier Security Logging (Laddad, 2003, p. 9) What is AOP? Non-AOP implementation of crosscutting

What is AOP? Business Logic Requirements Concern Identifier Security Logging (Laddad, 2003, p. 9) What is AOP? Non-AOP implementation of crosscutting Aspect Oriented Programming Todd A. Whittaker Franklin University whittakt@franklin.edu What is AOP? Addresses crosscutting concerns Requirements analysis leads to identification of concerns in a software

More information

GETTING STARTED WITH ASPECTJ

GETTING STARTED WITH ASPECTJ a GETTING STARTED WITH ASPECTJ An aspect-oriented extension to Java enables plug-and-play implementations of crosscutting. Many software developers are attracted to the idea of AOP they recognize the concept

More information

So, What is an Aspect?

So, What is an Aspect? Introduction to AspectJ Aspect-oriented paradigm AspectJ constructs Types of Join Points Primitive Lexical designators Type designators Control flow Types of Advice Before After Around Receptions Join

More information

Using Aspect-Oriented Programming to extend Protégé. Henrik Eriksson Linköping University

Using Aspect-Oriented Programming to extend Protégé. Henrik Eriksson Linköping University Using Aspect-Oriented Programming to extend Protégé Henrik Eriksson Linköping University Questions about MOP and Protégé Original goal: Extending the JessTab plug-in What is the class precedence in Protégé?

More information

AOSA - Betriebssystemkomponenten und der Aspektmoderatoransatz

AOSA - Betriebssystemkomponenten und der Aspektmoderatoransatz AOSA - Betriebssystemkomponenten und der Aspektmoderatoransatz Results obtained by researchers in the aspect-oriented programming are promoting the aim to export these ideas to whole software development

More information

Aspect-Oriented Programming

Aspect-Oriented Programming Aspect-Oriented Programming Based on the Example of AspectJ Prof. Harald Gall University of Zurich, Switzerland software evolution & architecture lab AOP is kind of a complicated one for me ( ) the idea

More information

Aspect Oriented Programming

Aspect Oriented Programming 1 Aspect Oriented Programming Programming Languages Seminar Presenter: Barış Aktemur University of Illinois 18 Feb. 2004 Mostly taken from Bedir Tekinerdogan s slides Outline Introduction Problems Terminology

More information

Aspect-Oriented Programming and AspectJ

Aspect-Oriented Programming and AspectJ What is Aspect-Oriented Programming? Many possible answers: a fad Aspect-Oriented Programming and AspectJ Aspect-oriented programming is a common buzzword lately Papers from ECOOP 1997 (early overview

More information

Information systems modeling. Tomasz Kubik

Information systems modeling. Tomasz Kubik Information systems modeling Tomasz Kubik Aspect-oriented programming, AOP Systems are composed of several components, each responsible for a specific piece of functionality. But often these components

More information

Chapter 21 Aspect-Oriented Software Engineering (AOSE)

Chapter 21 Aspect-Oriented Software Engineering (AOSE) Chapter 21 Aspect-Oriented Software Engineering (AOSE) Chapter 21 Aspect-Oriented Software Engineering Slide 1 Topics covered Introduction and motivation The separation of concerns Core vs. cross-cutting

More information

A short introduction to INF329. Spring AOP

A short introduction to INF329. Spring AOP A short introduction to INF329 Spring AOP Introduction to AOP AOP is an abbreviation for aspectoriented programming Aspect-oriented programming is a new paradigm in programming, seperating functionality

More information

OS Customization versus OS Code Modularity

OS Customization versus OS Code Modularity OS Customization versus OS Code Modularity ECE 344 Fall 2006 Hans-Arno Jacobsen Thanks to Michael Gong, Vinod Muthusamy, and Charles Zhang for helping to find interesting examples et al. Possibly a Debugging

More information

Enterprise Informatization LECTURE

Enterprise Informatization LECTURE Enterprise Informatization LECTURE Piotr Zabawa, PhD. Eng. IBM/Rational Certified Consultant e-mail: pzabawa@pk.edu.pl www: http://www.pk.edu.pl/~pzabawa/en 07.10.2011 Lecture 7 Aspect-Oriented Programming

More information

Chapitre 6 Programmation orientée aspect (AOP)

Chapitre 6 Programmation orientée aspect (AOP) 6 Programmation orientée aspect (AOP) 2I1AC3 : Génie logiciel et Patrons de conception Régis Clouard, ENSICAEN - GREYC «L'homme est le meilleur ordinateur que l'on puisse embarquer dans un engin spatial...

More information

Aspect-Oriented Programming

Aspect-Oriented Programming Aspect-Oriented Programming Harald Gall University of Zurich seal.ifi.uzh.ch/ase Source: http://www.eclipse.org/aspectj/doc/released/progguide/starting-aspectj.html Programming paradigms Procedural programming

More information

Fun with AspectJ. 1 Getting Started. 2 Defining Pointcuts. Cleveland State University Electrical and Computer Engineering Distributed: April 8, 2008

Fun with AspectJ. 1 Getting Started. 2 Defining Pointcuts. Cleveland State University Electrical and Computer Engineering Distributed: April 8, 2008 EEC 421/521 Spring 2008 Dr. Nigamanth Sridhar Software Engineering Cleveland State University Electrical and Computer Engineering Distributed: April 8, 2008 Fun with AspectJ AspectJ is a pretty powerful

More information

Meta-Program and Meta-Programming

Meta-Program and Meta-Programming Meta-Program and Meta-Programming What is a Meta-Programming? The creation of procedures and programs that automatically construct the definitions of other procedures and programs. First example the Turing

More information

EVALUATING DATA STRUCTURES FOR RUNTIME STORAGE OF ASPECT INSTANCES

EVALUATING DATA STRUCTURES FOR RUNTIME STORAGE OF ASPECT INSTANCES MASTER THESIS EVALUATING DATA STRUCTURES FOR RUNTIME STORAGE OF ASPECT INSTANCES Andre Loker FACULTY OF ELECTRICAL ENGINEERING, MATHEMATICS AND COMPUTER SCIENCE (EEMCS) CHAIR OF SOFTWARE ENGINEERING EXAMINATION

More information

Chapter 32. Aspect-Oriented Software Development (AOSD) Ian Sommerville 2006 Software Engineering. Chapter 32 Slide 1

Chapter 32. Aspect-Oriented Software Development (AOSD) Ian Sommerville 2006 Software Engineering. Chapter 32 Slide 1 Chapter 32 Aspect-Oriented Software Development (AOSD) Ian Sommerville 2006 Software Engineering. Chapter 32 Slide 1 Objectives To explain the principle of separation of concerns in software development

More information

Using and Extending AspectJ for Separating Concerns in Parallel Java Code

Using and Extending AspectJ for Separating Concerns in Parallel Java Code Using and Extending AspectJ for Separating Concerns in Parallel Java Code Bruno Harbulot and John Gurd The University of Manchester POOSC 2005 Glasgow, July 2005 1/26 Presentation Outline Problem and Approach

More information

APTE: Automated Pointcut Testing for AspectJ Programs

APTE: Automated Pointcut Testing for AspectJ Programs APTE: Automated Pointcut Testing for AspectJ Programs Prasanth Anbalagan Department of Computer Science North Carolina State University Raleigh, NC 27695 panbala@ncsu.edu Tao Xie Department of Computer

More information

Aspect-Oriented Programming

Aspect-Oriented Programming Aspect-Oriented Programming Anya Helene Bagge Department of Informatics University of Bergen LRDE Seminar, 26 Mar 2008 Anya Helene Bagge (UiB) Aspect-Oriented Programming LRDE Seminar, 26 Mar 2008 1 /

More information

Efficient Mutant Generation for Mutation Testing of Pointcuts in Aspect-Oriented Programs

Efficient Mutant Generation for Mutation Testing of Pointcuts in Aspect-Oriented Programs Efficient Mutant Generation for Mutation Testing of Pointcuts in Aspect-Oriented Programs Prasanth Anbalagan 1 Tao Xie 2 Department of Computer Science, North Carolina State University, Raleigh, NC 27695,

More information

Method Slots: Supporting Methods, Events, and Advices by a Single Language Construct

Method Slots: Supporting Methods, Events, and Advices by a Single Language Construct Method Slots: Supporting Methods, Events, and Advices by a Single Language Construct YungYu Zhuang and Shigeru Chiba The University of Tokyo More and more paradigms are supported by dedicated constructs

More information

A Unit Testing Framework for Aspects without Weaving

A Unit Testing Framework for Aspects without Weaving A Unit Testing Framework for Aspects without Weaving Yudai Yamazaki l01104@sic.shibaura-it.ac.jp Kouhei Sakurai sakurai@komiya.ise.shibaura-it.ac.jp Saeko Matsuura matsuura@se.shibaura-it.ac.jp Hidehiko

More information

Programming AspectJ with Eclipse and AJDT, By Example. Chien-Tsun Chen Sep. 21, 2003

Programming AspectJ with Eclipse and AJDT, By Example. Chien-Tsun Chen Sep. 21, 2003 Programming AspectJ with Eclipse and AJDT, By Example Chien-Tsun Chen Sep. 21, 2003 ctchen@ctchen.idv.tw References R. Laddad, I want my AOP!, Part 1-Part3, JavaWorld, 2002. R. Laddad, AspectJ in Action,

More information

Problems in Aspect Oriented Design: Facts and Thoughts

Problems in Aspect Oriented Design: Facts and Thoughts 552 Problems in Aspect Oriented Design: Facts and Thoughts Md. Asraful Haque Department of Computer Engineering, Aligarh Muslim University Aligarh,U.P.-202002,India Abstract: The classic challenge in writing

More information

Aspect-Oriented Programming

Aspect-Oriented Programming Aspect-Oriented Programming Johan Östlund johano@dsv.su.se Why should you care? AOP sets out to manage complexity ~ Modularizing software AOP is being accepted/adopted in ever increasing numbers both in

More information

Motivation. Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it.

Motivation. Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. Aspects in AspectJ Motivation Aspect Oriented Programming: a brief introduction to terminology Installation Experimentation AspectJ some details AspectJ things you should know about but we dont have time

More information

AO4BPEL: An Aspect-oriented Extension to BPEL

AO4BPEL: An Aspect-oriented Extension to BPEL World Wide Web (2007) 10:309 344 DOI 10.1007/s11280-006-0016-3 AO4BPEL: An Aspect-oriented Extension to BPEL Anis Charfi Mira Mezini Received: 7 September 2004 / Revised: 31 July 2005 / Accepted: 16 August

More information

AOP 101: Intro to Aspect Oriented Programming. Ernest Hill

AOP 101: Intro to Aspect Oriented Programming. Ernest Hill AOP 101: Intro to Aspect Oriented Programming ernesthill@earthlink.net AOP 101-1 AOP 101: Aspect Oriented Programming Goal of Software History of Programming Methodology Remaining Problem AOP to the Rescue

More information

Unit-Testing Aspectual Behavior

Unit-Testing Aspectual Behavior Unit-Testing Aspectual Behavior [Position Paper] Cristina Videira Lopes and Trung Chi Ngo Donald Bren School of Information and Computer Sciences University of California, Irvine Irvine, CA 92697 {lopes,trungcn}@ics.uci.edu

More information

Comparative Evaluation of Programming Paradigms: Separation of Concerns with Object-, Aspect-, and Context-Oriented Programming

Comparative Evaluation of Programming Paradigms: Separation of Concerns with Object-, Aspect-, and Context-Oriented Programming Comparative Evaluation of Programming Paradigms: Separation of Concerns with Object-, Aspect-, and Context-Oriented Programming Fumiya Kato, Kazunori Sakamoto, Hironori Washizaki, and Yoshiaki Fukazawa

More information

A Design Discipline and Language Features for Formal Modular Reasoning in Aspect-Oriented Programs

A Design Discipline and Language Features for Formal Modular Reasoning in Aspect-Oriented Programs Computer Science Technical Reports Computer Science 12-2005 A Design Discipline and Language Features for Formal Modular Reasoning in Aspect-Oriented Programs Curtis Clifton Iowa State University Gary

More information

Modularity: what, why and how

Modularity: what, why and how Modularity: what, why and how Stephen Kell Stephen.Kell@cl.cam.ac.uk Computer Laboratory University of Cambridge Modularity... p.1/33 Some problematic code Imagine implementing a syntax tree evaluator.

More information

Aspect-Oriented Programming with C++ and AspectC++

Aspect-Oriented Programming with C++ and AspectC++ Aspect-Oriented Programming with C++ and AspectC++ AOSD 2007 Tutorial University of Erlangen-Nuremberg Computer Science 4 Presenters Daniel Lohmann dl@aspectc.org University of Erlangen-Nuremberg, Germany

More information

Bugdel: An Aspect-Oriented Debugging System

Bugdel: An Aspect-Oriented Debugging System Bugdel: An Aspect-Oriented Debugging System Yoshiyuki Usui and Shigeru Chiba Dept. of Mathematical and Computing Sciences Tokyo Institute of Technology 2-12-1-W8-50 Ohkayama, Meguro-ku Tokyo 152-8552,

More information

Improving Software Modularity using AOP

Improving Software Modularity using AOP B Vasundhara 1 & KV Chalapati Rao 2 1 Dept. of Computer Science, AMS School of Informatics, Hyderabad, India 2 CVR College of Engineering, Ibrahimpatnam, India E-mail : vasu_venki@yahoo.com 1, chalapatiraokv@gmail.com

More information

Refactoring Aspect Oriented Software

Refactoring Aspect Oriented Software Refactoring Aspect Oriented Software Jochem Rutgers rutgers@ewi.utwente.nl ABSTRACT Existing refactoring methods are able to rewrite object-oriented code to better object-oriented code or to aspect-oriented

More information

AOP Tutorial. Written By: Muhammad Asif. Department of Computer Science, Virtual University of Pakistan

AOP Tutorial. Written By: Muhammad Asif. Department of Computer Science, Virtual University of Pakistan AOP Tutorial Written By: Muhammad Asif. Department of Computer Science, Virtual University of Pakistan Table of Contents 1.0 INTRODUCTION... 3 2.0 SCOPE AND OBJECTIVE... 4 3.0 MOTIVATION... 5 4.0 HISTORY...

More information

Identification of Differences Between Aspect-Oriented Programs. Marija Katic, PhD Student

Identification of Differences Between Aspect-Oriented Programs. Marija Katic, PhD Student Identification of Differences Between Aspect-Oriented Programs Marija Katic, PhD Student University of Zagreb, Faculty of Electrical Engineering and Computing Department of Applied Computing Content Aspect-Oriented

More information

Applying Aspect Oriented Programming on Security

Applying Aspect Oriented Programming on Security Original Article Applying Aspect Oriented Programming on Security Mohammad Khalid Pandit* 1, Azra Nazir 1 and Arutselvan M 2 1 Department of computer Science and engineering, National institute of technology

More information

Designing Aspect-Oriented Crosscutting in UML

Designing Aspect-Oriented Crosscutting in UML Designing Aspect-Oriented Crosscutting in UML Dominik Stein, Stefan Hanenberg, and Rainer Unland Institute for Computer Science University of Essen, Germany {dstein shanenbe unlandr}@cs.uni-essen.de ABSTRACT

More information

Language support for AOP

Language support for AOP Language support for AOP AspectJ and beyond Mario Südholt www.emn.fr/sudholt INRIA and École des Mines de Nantes OBASCO project, Nantes, France Language support for AOP ; Mario Südholt; INRIA/EMN; March

More information

An Investigation of Modular Dependencies in Aspects, Features and Classes

An Investigation of Modular Dependencies in Aspects, Features and Classes An Investigation of Modular Dependencies in Aspects, Features and Classes By Shoushen Yang A Thesis Submitted to the Faculty of the WORCESTER POLYTECHNIC INSTITUTE in partial fulfillment of the requirements

More information

Software Engineering: Design Aspect-Oriented Programming and Modularity

Software Engineering: Design Aspect-Oriented Programming and Modularity Software Engineering: Design Aspect-Oriented Programming and Modularity Christian M. Meyer Software Technology Group Darmstadt University of Technology January 29, 2006 1 Aspect-Oriented Programming Aspect-oriented

More information

A Query-Based Approach for the Analysis of Aspect-Oriented Systems by

A Query-Based Approach for the Analysis of Aspect-Oriented Systems by A Query-Based Approach for the Analysis of Aspect-Oriented Systems by Eduardo Salomão Barrenechea A thesis presented to the University of Waterloo in fulfillment of the thesis requirement for the degree

More information

Specifying languages using aspect-oriented approach: AspectLISA

Specifying languages using aspect-oriented approach: AspectLISA Specifying languages using aspect-oriented approach: AspectLISA Damijan Rebernak, Marjan Mernik University of Maribor, Faculty of Electrical Engineering and Computer Science Smetanova ulica 17, 2000 Maribor,

More information

Introduction to Aspect Oriented Programming and Aspect Matlab. AspectMatlab 1 / 30

Introduction to Aspect Oriented Programming and Aspect Matlab. AspectMatlab 1 / 30 Introduction to Aspect Oriented Programming and Aspect Matlab AspectMatlab 1 / 30 Motivation for Aspect Oriented Programming void transfer (Account from, Account to, int amount, User user, Logger logger)

More information

Vrije Universiteit Brussel - Belgium Faculty of Sciences In Collaboration with Ecole des Mines de Nantes - France

Vrije Universiteit Brussel - Belgium Faculty of Sciences In Collaboration with Ecole des Mines de Nantes - France Vrije Universiteit Brussel - Belgium Faculty of Sciences In Collaboration with Ecole des Mines de Nantes - France 2005 VRIJE UNIVERSITEIT BRUSSEL SCIENTIA VINCERE TENEBRAS ECOLE DES MINES DE NANTES DHAMACA:

More information

Aspect Oriented Programming

Aspect Oriented Programming Aspect Oriented Programming Why, What and How? Andy Clement AspectJ Committer IBM Hursley Park clemas@uk.ibm.com 1 Agenda Why? Why do we need AOP? What? What is AOP? AspectJ How? The need for tool support

More information

Spring Interview Questions

Spring Interview Questions Spring Interview Questions By Srinivas Short description: Spring Interview Questions for the Developers. @2016 Attune World Wide All right reserved. www.attuneww.com Contents Contents 1. Preface 1.1. About

More information

Introduction to Aspect-Oriented Programming

Introduction to Aspect-Oriented Programming Introduction to Aspect-Oriented Programming Martin Giese Chalmers University of Technology Göteborg, Sweden AOP Course 2003 p.1/44 AspectJ Quick Tour AOP Course 2003 p.2/44 Reminder: Join Points A join

More information

Implementing Producers/Consumers Problem Using Aspect-Oriented Framework

Implementing Producers/Consumers Problem Using Aspect-Oriented Framework Implementing Producers/Consumers Problem Using Aspect-Oriented Framework 1 Computer Science Department School of Science Bangkok University Bangkok, Thailand netipan@iit.edu Paniti Netinant 1, 2 and Tzilla

More information

Aspects and Soar: A Behavior Development Model. Jacob Crossman

Aspects and Soar: A Behavior Development Model. Jacob Crossman Aspects and Soar: A Behavior Development Model Jacob Crossman jcrossman@soartech.com Motivation: Why is Soar Useful? Soar Systems are often complex Often require multiple processes Are built of hundreds/thousands

More information

SCALA AND ASPECTJ. Approaching Modularizing of Crosscutting. Ramnivas Laddad. Concerns. ramnivas

SCALA AND ASPECTJ. Approaching Modularizing of Crosscutting. Ramnivas Laddad. Concerns. ramnivas SCALA AND ASPECTJ Approaching Modularizing of Crosscutting Concerns Ramnivas Laddad ramnivas ramnivas!com @ramnivas Copyright Ramnivas Laddad. All rights reserved. @ramnivas Spring framework committer

More information

New Programming Paradigms

New Programming Paradigms New Programming Paradigms Lecturer: Pánovics János (google the name for further details) Requirements: For signature: classroom work and a 15-minute presentation Exam: written exam (mainly concepts and

More information

Introduction to Aspect-Oriented Programming

Introduction to Aspect-Oriented Programming Introduction to Aspect-Oriented Programming LÁSZLÓ LENGYEL, TIHAMÉR LEVENDOVSZKY {lengyel, tihamer}@aut.bme.hu Reviewed Key words: aspect-oriented programming (AOP), crosscutting concerns Aspect-oriented

More information

The AspectJTM Programming Guide

The AspectJTM Programming Guide Table of Contents The AspectJTM Programming Guide...1 the AspectJ Team...1 Preface...3 Chapter 1. Getting Started with AspectJ...3 Introduction...4 AspectJ Semantics...5 The Dynamic Join Point Model...6

More information

Dynamic Aspects. An AOP Implementation for Squeak. Masterarbeit der Philosophisch-naturwissenschaftlichen Fakultät der Universität Bern.

Dynamic Aspects. An AOP Implementation for Squeak. Masterarbeit der Philosophisch-naturwissenschaftlichen Fakultät der Universität Bern. Dynamic Aspects An AOP Implementation for Squeak Masterarbeit der Philosophisch-naturwissenschaftlichen Fakultät der Universität Bern vorgelegt von Anselm Strauss Bern 2008 Leiter der Arbeit Dr. Marcus

More information

Using Aspects to Make Adaptive Object-Models Adaptable

Using Aspects to Make Adaptive Object-Models Adaptable Using Aspects to Make Adaptive Object-Models Adaptable Ayla Dantas 1, Joseph Yoder 2, Paulo Borba 1, Ralph Johnson 2 1 Software Productivity Group Informatics Center Federal University of Pernambuco Recife,

More information

Using Aspects to Make Adaptive Object-Models Adaptable

Using Aspects to Make Adaptive Object-Models Adaptable Using Aspects to Make Adaptive Object-Models Adaptable Ayla Dantas 1, Joseph Yoder 2, Paulo Borba, and Ralph Johnson 1 Software Productivity Group Informatics Center Federal University of Pernambuco Recife,

More information

DISCUSSING ASPECTS OF AOP

DISCUSSING ASPECTS OF AOP a DISCUSSING ASPECTS OF AOP How would you define AOP? Gregor Kiczales: Aspect-oriented programming is a new evolution in the line of technology for separation of concerns technology that allows design

More information

Designing Loop Condition Constraint Model for Join Point Designation Diagrams (JPDDs)

Designing Loop Condition Constraint Model for Join Point Designation Diagrams (JPDDs) Designing Loop Condition Constraint Model for Join Point Designation Diagrams (JPDDs) Bahram Zarrin Master Student Bahram.zarrin@gmail.com Rodziah Atan Doctor rodziah@fsktm.upm.edu.my Muhammad Taufik Abdullah

More information

Aspect-oriented Software Development. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 32 Slide 1

Aspect-oriented Software Development. Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 32 Slide 1 Aspect-oriented Software Development Ian Sommerville 2006 Software Engineering, 8th edition. Chapter 32 Slide 1 Objectives To explain the principle of separation of concerns in software development To

More information

Some language elements described in this text are not yet supported in the current JAsCo version (0.8.x). These are: Multiple hook constructors

Some language elements described in this text are not yet supported in the current JAsCo version (0.8.x). These are: Multiple hook constructors !IMPORTANT! Some language elements described in this text are not yet supported in the current JAsCo version (0.8.x). These are: Multiple hook constructors Gotchas when migrating to 0.8.5 from an earlier

More information

Aspect Weaving DyMAC middleware. by Tonje Klykken, INF5360 May 6th 2008

Aspect Weaving DyMAC middleware. by Tonje Klykken, INF5360 May 6th 2008 Aspect Weaving DyMAC middleware by Tonje Klykken, INF5360 May 6th 2008 Agenda Brief AOP/AOSD motivation and concepts Problem description and refinement DyMAC component model DyMAC architecture model Analysis

More information

Program Instrumentation for Debugging and Monitoring with AspectC++

Program Instrumentation for Debugging and Monitoring with AspectC++ Program Instrumentation for Debugging and Monitoring with AspectC++ Daniel Mahrenholz, Olaf Spinczyk, and Wolfgang Schröder-Preikschat University of Magdeburg Universitätsplatz 2 D-39106 Magdeburg, Germany

More information

Language-Independent Aspect-Oriented Programming

Language-Independent Aspect-Oriented Programming Language-Independent Aspect-Oriented Programming Donal Lafferty Donal.Lafferty@cs.tcd.ie Distributed Systems Group Department of Computer Science Trinity College Dublin Vinny Cahill Vinny.Cahill@cs.tcd.ie

More information

Aspect-Oriented Smart Proxies in Java RMI

Aspect-Oriented Smart Proxies in Java RMI Aspect-Oriented Smart Proxies in Java RMI by Andrew Stevenson A thesis presented to the University of Waterloo in fulfilment of the thesis requirement for the degree of Master of Mathematics in Computer

More information

Mapping Features to Aspects

Mapping Features to Aspects Mapping Features to Aspects The Road from Crosscutting to Product Lines (Work in Progress) Roberto E. Lopez-Herrejon Computing Laboratory Oxford University 1 Motivation Features Feature Informally: A characteristic

More information

UniAspect: A Language-Independent Aspect-Oriented Programming Framework

UniAspect: A Language-Independent Aspect-Oriented Programming Framework UniAspect: A Language-Independent Aspect-Oriented Programming Framework Akira Ohashi Kazunori Sakamoto Tomoyuki Kamiya Reisha Humaira Satoshi Arai Hironori Washizaki Yoshiaki Fukazawa Waseda University

More information

Data Structures (list, dictionary, tuples, sets, strings)

Data Structures (list, dictionary, tuples, sets, strings) Data Structures (list, dictionary, tuples, sets, strings) Lists are enclosed in brackets: l = [1, 2, "a"] (access by index, is mutable sequence) Tuples are enclosed in parentheses: t = (1, 2, "a") (access

More information

APPLYING OBJECT-ORIENTATION AND ASPECT-ORIENTATION IN TEACHING DOMAIN-SPECIFIC LANGUAGE IMPLEMENTATION *

APPLYING OBJECT-ORIENTATION AND ASPECT-ORIENTATION IN TEACHING DOMAIN-SPECIFIC LANGUAGE IMPLEMENTATION * APPLYING OBJECT-ORIENTATION AND ASPECT-ORIENTATION IN TEACHING DOMAIN-SPECIFIC LANGUAGE IMPLEMENTATION * Xiaoqing Wu, Barrett Bryant and Jeff Gray Department of Computer and Information Sciences The University

More information

Implicit BPM Business Process Platform for Transparent Workflow Weaving

Implicit BPM Business Process Platform for Transparent Workflow Weaving Implicit BPM Business Process Platform for Transparent Workflow Weaving Rubén Mondéjar, Pedro García, Carles Pairot, and Enric Brull BPM Round Table Tarragona Contents Context Introduction 01/27 Building

More information

Aspect Design Pattern for Non Functional Requirements

Aspect Design Pattern for Non Functional Requirements Aspect Design Pattern for Non Functional Requirements FAZAL-E-AMIN¹, ANSAR SIDDIQ², HAFIZ FAROOQ AHMAD³ ¹ ²International Islamic University Islamabad, Pakistan ³NUST Institute of Information Technology,

More information

CONVERTING CODE CLONES TO ASPECTS USING ALGORITHMIC APPROACH

CONVERTING CODE CLONES TO ASPECTS USING ALGORITHMIC APPROACH CONVERTING CODE CLONES TO ASPECTS USING ALGORITHMIC APPROACH by Angad Singh Gakhar, B.Tech., Guru Gobind Singh Indraprastha University, 2009 A thesis submitted to the Faculty of Graduate and Postdoctoral

More information

Refactoring of Aspect-Oriented Software

Refactoring of Aspect-Oriented Software Refactoring of Aspect-Oriented Software Stefan Hanenberg, Christian Oberschulte, Rainer Unland University of Duisburg-Essen, Institute for Computer Science and Business Information Systems (ICB) 45127

More information

Understanding Concerns in Software: Insights Gained from Two Case Studies Meghan Revelle, Tiffany Broadbent, and David Coppit

Understanding Concerns in Software: Insights Gained from Two Case Studies Meghan Revelle, Tiffany Broadbent, and David Coppit Understanding Concerns in Software: Insights Gained from Two Case Studies Meghan Revelle, Tiffany Broadbent, and David Coppit Department of Computer Science The College of William and Mary Separation of

More information

Open Modules: Reconciling Extensibility and Information Hiding

Open Modules: Reconciling Extensibility and Information Hiding Open Modules: Reconciling Extensibility and Information Hiding Jonathan Aldrich School of Computer Science Carnegie Mellon University 5000 Forbes Avenue Pittsburgh, PA 15213, USA jonathan.aldrich@cs.cmu.edu

More information

Content(2) Contribution of OOT in Software Engineering History of SE Technologies and Contribution of OOT JAIST Koichiro Ochimizu

Content(2) Contribution of OOT in Software Engineering History of SE Technologies and Contribution of OOT JAIST Koichiro Ochimizu Content(2) Object-oriented Software Development Methodology Outline of Unified Process and Use-case Driven Approach Elevator Control System: Problem Description and Use-case Model Elevator Control System:

More information

Chapter 7. Modular Refactoring. 7.1 Introduction to Modular Refactoring

Chapter 7. Modular Refactoring. 7.1 Introduction to Modular Refactoring Chapter 7 Modular Refactoring I n this chapter, the role of Unified Modeling Language (UML) diagrams and Object Constraint Language (OCL) expressions in modular refactoring have been explained. It has

More information

Aspects in AspectJ. October 2013 CSC5021: AspectJ (J P Gibson) 1

Aspects in AspectJ. October 2013 CSC5021: AspectJ (J P Gibson) 1 Aspects in AspectJ Motivation Aspect Oriented Programming: a brief introduction to terminology Installation Experimentation AspectJ some details AspectJ thingsyoushouldknow about but wedont have time to

More information

Slicing Aspect-oriented program Hierarchically

Slicing Aspect-oriented program Hierarchically Slicing Aspect-oriented program Hierarchically S. R. Mohanty Dept. of CS RIMS, Rourkela Odisha, India Pin 769012 P. K. Behera Dept. of CSA Utkal University, Vani Vihar Odisha, India D. P. Mohapatra Dept.

More information

GenUTest: An Automatic Unit Test & Mock Aspect Generation Tool

GenUTest: An Automatic Unit Test & Mock Aspect Generation Tool Tel Aviv University The Raymond and Beverly Sackler Faculty of Exact Sciences GenUTest: An Automatic Unit Test & Mock Aspect Generation Tool Thesis submitted in partial fulfillment of the requirements

More information

ParaAJ: toward Reusable and Maintainable Aspect Oriented Programs

ParaAJ: toward Reusable and Maintainable Aspect Oriented Programs ParaAJ: toward Reusable and Maintainable Aspect Oriented Programs Khalid Aljasser Peter Schachte The University of Melbourne, Australia {aljasser,schachte@csse.unimelb.edu.au Abstract Aspect Oriented Programming

More information

Enterprise AOP with Spring Applications IN ACTION SAMPLE CHAPTER. Ramnivas Laddad FOREWORD BY ROD JOHNSON MANNING

Enterprise AOP with Spring Applications IN ACTION SAMPLE CHAPTER. Ramnivas Laddad FOREWORD BY ROD JOHNSON MANNING Enterprise AOP with Spring Applications IN ACTION SAMPLE CHAPTER Ramnivas Laddad FOREWORD BY ROD JOHNSON MANNING AspectJ in Action Second Edition by Ramnivas Laddad Chapter 1 Copyright 2010 Manning Publications

More information

Objects, Subclassing, Subtyping, and Inheritance

Objects, Subclassing, Subtyping, and Inheritance Objects, Subclassing, Subtyping, and Inheritance Brigitte Pientka School of Computer Science McGill University Montreal, Canada In these notes we will examine four basic concepts which play an important

More information

An Aspect-Oriented Approach. Henrique Rebêlo Informatics Center

An Aspect-Oriented Approach. Henrique Rebêlo Informatics Center An Aspect-Oriented Approach to implement JML Features Henrique Rebêlo Informatics Center Federal University of Pernambuco Summary jmlc problems bigger code, slower code, no suppport for Java ME, and bad

More information

Weaving a Debugging Aspect into Domain-Specific Language Grammars

Weaving a Debugging Aspect into Domain-Specific Language Grammars Weaving a Debugging Aspect into Domain-Specific Language Grammars Hui Wu, Jeff Gray, and Suman Roychoudhury Department of Computer and Information Sciences The University of Alabama at Birmingham Birmingham,

More information