0% found this document useful (0 votes)
6 views

Java Ques5

AOP (Aspect-Oriented Programming) enhances modularity by separating program logic into distinct concerns, allowing for centralized management of cross-cutting concerns like logging and security. Spring AOP offers advantages such as dynamic addition or removal of concerns and ease of maintenance. Key concepts include Aspect (class for cross-cutting concerns), Advice (methods executed at JoinPoints), Pointcut (criteria for executing Advice), and JoinPoint (specific points in program execution).

Uploaded by

Paoli Bose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Java Ques5

AOP (Aspect-Oriented Programming) enhances modularity by separating program logic into distinct concerns, allowing for centralized management of cross-cutting concerns like logging and security. Spring AOP offers advantages such as dynamic addition or removal of concerns and ease of maintenance. Key concepts include Aspect (class for cross-cutting concerns), Advice (methods executed at JoinPoints), Pointcut (criteria for executing Advice), and JoinPoint (specific points in program execution).

Uploaded by

Paoli Bose
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

==>>What is AOP?

AOP breaks the program logic into distinct parts (called concerns). It is used to
increase modularity by cross-cutting concerns.

A cross-cutting concern is a concern that can affect the whole application and
should be centralized in one location in code as possible,
such as transaction management, authentication, logging, security etc.

==>>What are the advantages of spring AOP?

AOP enables you to dynamically add or remove concern before or after the business
logic. It is pluggable and easy to maintain.

==>>What is JoinPoint?

JoinPoint is any point in your program such as field access, method execution,
exception handling etc.

==>> What are the types of advice in AOP?

Before Advice
After Advice
After Returning Advice
Throws Advice
Around Advice

==>>What Are Aspect, Advice, Pointcut and JoinPoint in AOP?

Aspect – a class that implements cross-cutting concerns, such as transaction


management
Advice – the methods that get executed when a specific JoinPoint with matching
Pointcut is reached in the application
Pointcut – a set of regular expressions that are matched with JoinPoint to
determine whether Advice needs to be executed or not
JoinPoint – a point during the execution of a program, such as the execution of a
method or the handling of an exception

You might also like