IOC:(Inversion of Control)
Spring IOC Container
BeanFactory
Spring xml based configuration using elements
1) Bean
a) Instantiation using a constructor
b) Instantiation using a static factory method
c) Instantiation using an instance factory method
d) Injecting dependencies using Setter Injection and Constructor Injection.
e) making use of idref,local,property,Inner beans,props, list,set, map, Collection merging,null,depends-on,Lazily-instantiating beans,Life cycle methods
2) Import
3) Aliasing beans
4) Bean Scopes
a) singleton
b) protoype
c) request
d) session
5) Autowiring collaborators
a) no
b) byName
c) byType
d) constructor
e) autodetect
Shutting down the Spring IoC container gracefully in non-web applications.
Bean definition inheritance
BeanFactoryAware,BeanPostProcessor
ObjectFactoryCreatingFactoryBean,BeanFactoryPostProcessor
PropertyPlaceHolderConfigurer
PropertyOverrideConfigurer
ApplicationContext
a) Internationalization using MessageSources
b) Events using ApplicationListener
AOP(Aspect Oriented Programming):
--> Advice,JoinPoint,Aspect,Target,Pointcut
--> BeforeAdvice
--> AroundAdvice
--> Throws Advice
--> static pointcuts
a) NameMatchMethodPointcut
b) RegExpMethodPointCut
--> Dynamic pointcuts
Data access using JDBC:
--> JdbcTemplate
--> Most of the methods present in JdbcTemplate class will be covered.
Object Relational Mapping (ORM) data access:(Integrating Hibernate with Spring)
--> Introduction of Hibernate.
--> HibernateTemplate
--> JndiObjectFactoryBean
--> LocalSessionFactoryBean
--> HibernateDaoSupport
Spring MVC:
--> Introduction of struts
--> DispatcherServlet
--> ContextLoaderListener,ContextLoaderServlet
--> Handler Mappings
a) BeanNameUrlHandlerMapping
--> Controllers
a) AbstractController
b) AbstractCommandController
c) SimpleFormController
d) AbstractWizardFormController
e) MultiActionController
f) ThrowawayController
--> ModelAndVie
--> View Resolvers
a) InternalResourceViewResolver
b) BeanNameViewResolver
c) XmlViewResolver
d) ResourceBundleViewResolver
--> MethodNameResolvers
a) InternalPathMethodNameResolver
b) ParameterMethodNameResolver
c) PropertiesMethodNameResolver
--> SimpleMappingExceptionResolver
Integration of struts with springs
--> ContextLoaderPlugIn
--> ApplicationContext
--> DelegatingActionProxy
--> DelegatingRequestProcessor
--> DelegatingTilesRequestProcessor
--> ActionSupport |