Notes about Spring IoC
- The
org.springframework.beans
andorg.springframework.context
packages are the basis for Spring Framework’s IoC container. BeanFactory
provides the configuration framework and basic functionality, and theApplicationContext
adds more enterprise-specific functionality.
- What are beans in Spring?
In Spring, the objects that form the backbone of your application and that are managed by the Spring IoC container are called beans. A bean is an object that is instantiated, assembled, and managed by a Spring IoC container. Otherwise, a bean is simply one of many objects in your application. Beans, and the dependecies among them, are reflected in the configuration metadata used by a container.
- AOP Reference
A
Pointcut
is a predicate that matches aJoin Point
.Advice
is associated with aPointcut
and runs at anyJoin Point
matched by thePointcut
.