SlideShare a Scribd company logo
Aspect-Oriented Programing
Introduction
What is the problem with OOP?
Any custom software development necessarily
needs to address cross-cutting concerns.
Pooling
Validation Caching
Synchronisation
Profiling
Transaction
Logging
LoadBalancing
Reomoting
Persistance
Security
How to share these behaviors without
"dirty" code?
What is the problem with OOP?
Business Logic Code
Logging
Monitoring
Validation
Transaction
What is the problem with OOP?
• The OOP provides a good level of abstraction and
modularity
• Complex problems often arrive at the following
cases
– Too many abstractions
– Difficulty in breaking code
– Strong Coupling between components
– Scattered code
• Principles of software development S.O.L.I.D
– SRP
AOP
• aspect-oriented programming (AOP) is
a programming paradigm that aims to
increase modularity by allowing
the separation of cross-cutting concerns
- wikipedia
A simplistic example
Identification of cross-cutting Concerns
A simplistic example
Writing the advice
A simplistic example
Select the action points (pointcut)
In our example:
Pointcut = "At the beginning of each method"
In summary, AOP is
• Identify needs transverse (cross cutting
concerns)
• Write one or more plugin code (advices)
– Representation aspect
– Encapsulation of behavior.
• Choosing where to apply these
plugin(pointcuts)
OOP + AOP
Who links the code ?
Weaver
When to use AOP ?
Q & A ?

More Related Content

PPT
Cookies and sessions
PDF
PDF
PPT
ASP.NET MVC Presentation
PPTX
Spring 3.x - Spring MVC - Advanced topics
PPT
JQuery introduction
PPTX
jQuery
PPSX
JDBC: java DataBase connectivity
Cookies and sessions
ASP.NET MVC Presentation
Spring 3.x - Spring MVC - Advanced topics
JQuery introduction
jQuery
JDBC: java DataBase connectivity

What's hot (20)

PDF
introduction to Vue.js 3
PPT
Introduction to MongoDB
PPTX
Hibernate ppt
PPTX
Introduction to Angularjs
PPTX
Java servlets
PDF
Spring annotation
PDF
CSS Positioning Elements.pdf
PPT
Advanced Javascript
PPT
Java Servlets
PDF
NodeJS for Beginner
PPT
Node.js Express Framework
PDF
C# ASP.NET WEB API APPLICATION DEVELOPMENT
PPTX
Basic Concept of Node.js & NPM
PDF
Exploiting Deserialization Vulnerabilities in Java
PPTX
Express js
PPTX
JSON: The Basics
PPTX
PPT
Introduction to java beans
introduction to Vue.js 3
Introduction to MongoDB
Hibernate ppt
Introduction to Angularjs
Java servlets
Spring annotation
CSS Positioning Elements.pdf
Advanced Javascript
Java Servlets
NodeJS for Beginner
Node.js Express Framework
C# ASP.NET WEB API APPLICATION DEVELOPMENT
Basic Concept of Node.js & NPM
Exploiting Deserialization Vulnerabilities in Java
Express js
JSON: The Basics
Introduction to java beans
Ad

Viewers also liked (15)

ODP
Aspect Oriented Programming (AOP) - A case study in Android
PPTX
Summary of Aspect Oriented Programming
PDF
マルチテナントメッセージング基盤を刷新して一年運用した話
PPTX
Dynamics Telephony Dialer Intro
PDF
Object Oriented Programing - Inheritance
PDF
Object Oriented Programing - Polymrphism
PDF
Object Oriented Programing - Intro
PPTX
Object Oriented Programing in JavaScript
PPTX
AspectJ Android with Example
PDF
Aspect Oriented Programming and Design
PPTX
object oriented programing lecture 1
KEY
Spring AOP
PDF
Introduction to compilers
PDF
India Legal 31 August 2016
PDF
Programing paradigm & implementation
Aspect Oriented Programming (AOP) - A case study in Android
Summary of Aspect Oriented Programming
マルチテナントメッセージング基盤を刷新して一年運用した話
Dynamics Telephony Dialer Intro
Object Oriented Programing - Inheritance
Object Oriented Programing - Polymrphism
Object Oriented Programing - Intro
Object Oriented Programing in JavaScript
AspectJ Android with Example
Aspect Oriented Programming and Design
object oriented programing lecture 1
Spring AOP
Introduction to compilers
India Legal 31 August 2016
Programing paradigm & implementation
Ad

Similar to Aspect Oriented Programing - Introduction (20)

PPT
Aspect oriented programming in .Net
PDF
Solve cross cutting concerns with aspect oriented programming (aop)
PPT
Aspect Oriented Software Development
PPTX
Jak aspekty uporządkują twój kod.
PPT
Aspect Oriented Programming
PPTX
Aspect oriented programming
PPTX
Introduction To Aspect Oriented Programming
PPTX
Performance analysis of synchronisation problem
PDF
Aspect Oriented Development
PPTX
Intro To AOP
PPTX
How aspects clean your code
PDF
Throwing Laravel into your Legacy App™
PPTX
Introduction to Aspect Oriented Programming
KEY
Pointcut Rejuvenation: Recovering Pointcut Expressions in Evolving Aspect-Ori...
PDF
So You Just Inherited a $Legacy Application...
PDF
So You Just Inherited a $Legacy Application… NomadPHP July 2016
PPTX
Introduction to Aspect Oriented Programming by Donald Belcham
PPTX
Introduction To AOP
PDF
Software Defect Prevention via Continuous Inspection
PPT
9-Coding.ppt
Aspect oriented programming in .Net
Solve cross cutting concerns with aspect oriented programming (aop)
Aspect Oriented Software Development
Jak aspekty uporządkują twój kod.
Aspect Oriented Programming
Aspect oriented programming
Introduction To Aspect Oriented Programming
Performance analysis of synchronisation problem
Aspect Oriented Development
Intro To AOP
How aspects clean your code
Throwing Laravel into your Legacy App™
Introduction to Aspect Oriented Programming
Pointcut Rejuvenation: Recovering Pointcut Expressions in Evolving Aspect-Ori...
So You Just Inherited a $Legacy Application...
So You Just Inherited a $Legacy Application… NomadPHP July 2016
Introduction to Aspect Oriented Programming by Donald Belcham
Introduction To AOP
Software Defect Prevention via Continuous Inspection
9-Coding.ppt

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
01-Introduction-to-Information-Management.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
RMMM.pdf make it easy to upload and study
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Institutional Correction lecture only . . .
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharma ospi slides which help in ospi learning
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
Cell Structure & Organelles in detailed.
Renaissance Architecture: A Journey from Faith to Humanism
01-Introduction-to-Information-Management.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
RMMM.pdf make it easy to upload and study
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
TR - Agricultural Crops Production NC III.pdf
Computing-Curriculum for Schools in Ghana
human mycosis Human fungal infections are called human mycosis..pptx
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Microbial diseases, their pathogenesis and prophylaxis
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Anesthesia in Laparoscopic Surgery in India
Institutional Correction lecture only . . .
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharma ospi slides which help in ospi learning
STATICS OF THE RIGID BODIES Hibbelers.pdf

Aspect Oriented Programing - Introduction

  • 2. What is the problem with OOP? Any custom software development necessarily needs to address cross-cutting concerns. Pooling Validation Caching Synchronisation Profiling Transaction Logging LoadBalancing Reomoting Persistance Security How to share these behaviors without "dirty" code?
  • 3. What is the problem with OOP? Business Logic Code Logging Monitoring Validation Transaction
  • 4. What is the problem with OOP? • The OOP provides a good level of abstraction and modularity • Complex problems often arrive at the following cases – Too many abstractions – Difficulty in breaking code – Strong Coupling between components – Scattered code • Principles of software development S.O.L.I.D – SRP
  • 5. AOP • aspect-oriented programming (AOP) is a programming paradigm that aims to increase modularity by allowing the separation of cross-cutting concerns - wikipedia
  • 6. A simplistic example Identification of cross-cutting Concerns
  • 8. A simplistic example Select the action points (pointcut) In our example: Pointcut = "At the beginning of each method"
  • 9. In summary, AOP is • Identify needs transverse (cross cutting concerns) • Write one or more plugin code (advices) – Representation aspect – Encapsulation of behavior. • Choosing where to apply these plugin(pointcuts)
  • 11. Who links the code ? Weaver
  • 12. When to use AOP ?
  • 13. Q & A ?

Editor's Notes

  • #2: I would like to remind you that this task is not meant to conclude anything on AOP or OOP or any other programming paradigm ..
  • #3: How to share these behaviors without "dirty" code by a ton of abstraction?
  • #6: NearlyEvery programming language supports some level of grouping & encapsulating concerns into separate independent entities by providing abstractions …But some concerns defy these forms of abstractions and are called cross-cutting concerns because they “cut-across” multiple abstractions...
  • #8: Whenever I heard a web-talk or read an article on AOP.. .. Every one just give some basic example of using AOP to logging if not to security.