Save
Busy. Please wait.
Log in with Clever
or

show password
Forgot Password?

Don't have an account?  Sign up 
Sign up using Clever
or

Username is available taken
show password


Make sure to remember your password. If you forget it there is no way for StudyStack to send you a reset link. You would need to create a new account.
Your email address is only used to allow you to reset your password. See our Privacy Policy and Terms of Service.


Already a StudyStack user? Log In

Reset Password
Enter the associated with your account, and we'll email you a link to reset your password.
focusNode
Didn't know it?
click below
 
Knew it?
click below
Don't Know
Remaining cards (0)
Know
0:00
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.

  Normal Size     Small Size show me how

Spring AOP

QuestionAnswer
What is AspectJ? AspectJ refers to a style of declaring aspects using annotated classes. Spring AOP implements a simple type of AspectJ.
What is the difference between joinpoint and pointcut? A joinpoint is a selectable point in the execution of an application. A pointcut is an expression targetting one or more join points.
What is a Pointcut in regard to Spring AOP? A Pointcut is a set of one or more join points where an advice should be executed. They can be specified by using an expression or patterns. You specificy a point cut as a parameter to an advice annotation.
What is a join point in Spring AOP? 1 of 2 A point during the execution of a program, such as the execution of a method or the handling of an exception. In Spring AOP, a join point ALWAYS represents a method execution.
What is a join point in Spring AOP? 2 of 2 An object version of a JoinPoint is given to an advice when it is called. This object contains information about the current state of the program's execution; like the method's signature or arguments.
What are the types of Advice? 1 of 3 ●     @Before: Advice that executes before a join point. ●     @AfterReturning: Advice to be executed after a join point completes normally: for example, if a method returns without throwing an exception.
What are the types of Advice? 2 of 3 ● @AfterThrowing: Advice to be executed if a method exits by throwing an exception. ● @After: Advice to be executed regardless of the means by which the method exits (normal or exceptional return).
What are the types of Advice? 3 of 3 ● @Around: Advice that surrounds a join point. This is the most powerful kind of advice. Around advice can perform custom behavior before and after the method invocation. It can also return its own return value or throwing an exception
What do you mean by Advice? 1 of 2 An action taken by an aspect at a particular point in the execution of the application (join point). An Advice takes the form of a method, in Spring.
What do you mean by Advice? 2 of 2 The method will be annotated with an annotation representing types of advice. The annotation is given a pointcut as a parameter.
What is an Aspect ? An aspect is a modularization of a concern that cuts across multiple objects. In Spring AOP, aspects are implemented using classes annotated with the @Aspect annotation. Inside of an aspect you'll find a collection of advice.
What is AOP? 1 of 2 AOP stands for Aspect Oriented Programming. AOP helps programmers manage cross-cutting concerns.
What is AOP? 2 of 2 It allows programmers to modularize crosscutting concerns. The core construct of AOP is the aspect, which encapsulates behaviors affecting multiple classes into reusable modules.
What are cross-cutting concerns? 1 of 3 Cross-cutting concerns are operations that take place frequently across a program. These necessary actions are boiler plate code, spread throughout the application. Some examples include exception handling, logging, transaction management, and caching.
What are cross-cutting concerns? 2 of 3 Two types of cross-cutting concerns are: code tangling and code scattering. Code tangling is when you have multiple CCCs (eg a single method needing to log and cache).
What are cross-cutting concerns? 3 of 3 Code scattering is when CCCs are needed in many places in your application (eg. many methods needs to log and create transactions).
Created by: wahoo99
Popular Computers sets

 

 



Voices

Use these flashcards to help memorize information. Look at the large card and try to recall what is on the other side. Then click the card to flip it. If you knew the answer, click the green Know box. Otherwise, click the red Don't know box.

When you've placed seven or more cards in the Don't know box, click "retry" to try those cards again.

If you've accidentally put the card in the wrong box, just click on the card to take it out of the box.

You can also use your keyboard to move the cards as follows:

If you are logged in to your account, this website will remember which cards you know and don't know so that they are in the same box the next time you log in.

When you need a break, try one of the other activities listed below the flashcards like Matching, Snowman, or Hungry Bug. Although it may feel like you're playing a game, your brain is still making more connections with the information to help you out.

To see how well you know the information, try the Quiz or Test activity.

Pass complete!
"Know" box contains:
Time elapsed:
Retries:
restart all cards