Collection Flashcards
Java Collection?
A Collection represents group of a single unit of objects
types ?
set, list, tuple, map,etc
Set Interface ?
- unordered set of elements
- no duplicate items.
- onlyone null value allowed.
List Interface?
List interface
- store the ordered collection (of objects).
- can have duplicate values
Queue Interface ?
- Queue interface maintains the FIFO order.
- ordered list
map?
..
AOP ?
One of the key components of Spring Framework is the Aspect oriented programming (AOP) framework. Aspect-Oriented Programming entails breaking down program logic into distinct parts called so-called concerns. There are various common good examples of aspects like logging, auditing, declarative transactions, security, caching, etc. This brings two levels of complexity to our code.
cross-cutting concerns?
The functions that span multiple points of an application are called cross-cutting concerns and these cross-cutting concerns are conceptually separate from the application’s business logic.
AOP Terminologies
?
1 Aspect
This is a module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement.
2 Join point
This represents a point in our application where we can plug-in the AOP aspect. we can also say, it is the actual place in the application where an action will be taken using Spring AOP framework.
3 Advice
This is the actual action to be taken either before or after the method execution. This is an actual piece of code that is invoked during the program execution by Spring AOP framework.
4 Pointcut
This is a set of one or more join points where an advice should be executed. We can specify pointcuts using expressions or patterns as we will see in our AOP examples.
Aspect? in AOP
1 Aspect This is a module which has a set of APIs providing cross-cutting requirements. For example, a logging module would be called AOP aspect for logging. An application can have any number of aspects depending on the requirement.
Join point? in AOP
AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut
Join point :
This represents a point in our application where we can plug-in the AOP aspect. we can also say, it is the actual place in the application where an action will be taken using Spring AOP framework.
Advice? in AOP
AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut
Advice :-
This is the actual action to be taken either before or after the method execution. This is an actual piece of code that is invoked during the program execution by Spring AOP framework.
Pointcut? in AOP
AOP terms-(1)Aspect(2)Join point(3) Advice(4)Pointcut
Pointcut :-
This is a set of one or more join points where an advice should be executed. We can specify pointcuts using expressions or patterns as we will see in our AOP examples.