Introduction to Spring
Spring IDE and eclipse
IOC or DI in Spring
Spring approach for DI - Convention Over Configuration
- XML approach of DI
Creating a bean descriptor XML file in spring
Dependency injection via property or setter
Spring constructor injection tutorial
Defining contexts in different file
- Annotation approach for DI
In this approach we place @Resource on the property or setters of the class. Little cleaner than xml file, because managing long xml files is not easy for humans.
Annotation approach for DI
Annotation approach for constructor injection
Autowiring in Spring
Autowiring in xml config
Various Dependency injection methods
- IoC Container
BeanFactory Interface
ApplicationContext Interface
- Scopes in Spring
Bean scopes in Spring
Defining scope by annotation in spring
- Other cases of DI
a) Spring : Inheritance between beans
b) Factory methods helps us to write classes with factory design pattern.
Spring : factory-method
Spring : Factory methods with parameters
Spring : Creating custom factory-bean
c) Lookup method injection---Spring : Lookup Method injection
- Lazy initialization of beans
Earlier we discussed lookup method injection. Now we can discuss about lazy initialization, and alternative approach to lookup method injection.
Spring : ApplicationContextAware Interface
Spring : ObjectFactory Interface
Spring : ServiceLocatorFactoryBean Interface
- Namespaces in spring - Introduction
Spring : Using the P namespace
- Managing property filesTypes of Properties in javaManaging Property files with springSpring : Configuring properties file with PropertyPlaceholderConfigurerSpring : PropertyOverrideConfigurer
- Other cases of DI (examples)
Can an Innerclass be instantiated in Spring?
Spring Map ExampleSpring List Property Example
- Spring 3.0 EL support
- Lifecycle of beansSpring : BeanNameAware Interface
- Initializing the bean or destroying bean by some init method or destroy method
--Spring : init-method and destroy-method
--Implementing InitializingBean interface
--http://k2java.blogspot.com/2011/03/postconstruct-and-predestroy-example.html
- Spring : BeanPostProcessor interface
Spring : BeanFactroyPostProcessor interfaceSpring : Lifecycle interface
Spring : DisposableBean Interface and Initializing...
http://k2java.blogspot.com/2011/03/postconstruct-and-predestroy-example.html
@Required annotation
Managing life-cycle of the bean
AOP tutorial for Spring
- Need for AOP
- Introduction to AOP
- Spring AOP vs AspectJ
- AOP support in spring
Advices would have been explained in above mentioned points. So we can talk about them now. - Advice types in spring
Terminology of AOP ( though some part covered in above points)
- Writing the Aspect class
- Using xml style configuration
- Using annotation style configuration
- About joinpoint object
- Pointcut expressions
- Binding parameters to advice
- Named pointcuts
- Implementing After and AfterReturning Advice
- Exception handling using AOP
- Implementing Around Advice in aop
- Pitfalls of AOP
No comments:
Post a Comment