Welcome to Scribd. Sign in or start your free trial to enjoy unlimited e-books, audiobooks & documents.Find out more
Standard view
Full view
of .
Look up keyword
Like this
0 of .
Results for:
No results containing your search query
P. 1
AOP Presentation

AOP Presentation

|Views: 452|Likes:
Published by mohanraop

More info:

Published by: mohanraop on Jun 24, 2009
Copyright:Attribution Non-commercial


Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less





Aspect Oriented Programming with Spring
 Aspect-Oriented Programming
(AOP) complements Object-OrientedProgramming (OOP) by providing another way of thinking aboutprogram structure. The key unit of modularity in OOP is the class,whereas in AOP the unit of modularity is the
. Aspectsenable the modularization of concerns such as transactionmanagement that cut across multiple types and objects. (Suchconcerns are often termed
concerns in AOPliterature.)One of the key components of Spring is the
 AOP framework 
. Whilethe Spring IoC container does not depend on AOP, meaning youdo not need to use AOP if you don't want to, AOP complementsSpring IoC to provide a very capable middleware solution.AOP is used in the Spring Framework to...... provide declarative enterprise services, especially as areplacement for EJB declarative services. The most important suchservice is
.... allow users to implement custom aspects, complementing theiruse of OOP with AOP.
AOP concepts
: a modularization of a concern that cuts across multiple classes.Transaction management is a good example of a crosscutting concern inJ2EE applications.
 Join point 
: a point during the execution of a program, such as the executionof a method or the handling of an exception. In Spring AOP, a joinpoint
represents a method execution.
: action taken by an aspect at a particular join point. Different typesof advice include "around," "before" and "after" advice.
: a predicate that matches join points. Advice is associated with apointcut expression and runs at any join point matched by the pointcut (forexample, the execution of a method with a certain name).
Target object 
: object being advised by one or more aspects. Also referred toas the
object. Since Spring AOP is implemented using runtimeproxies, this object will always be a
 AOP proxy 
: an object created by the AOP framework in order to implementthe aspect contracts (advise method executions and so on). In the SpringFramework, an AOP proxy will be a JDK dynamic proxy or a CGLIB proxy.
: linking aspects with other application types or objects to create anadvised object. This can be done at compile time (using the AspectJ

Activity (7)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
anilgavate liked this
sushma_5420 liked this
manojrane liked this
ravigupta84 liked this
GuruMuruga liked this

You're Reading a Free Preview

/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->