Features
The Inversion of Control (IoC) container - For Dependency Injection
Xml Configuration,Java Configeration and Property File Based Configeration
Instantiation using a static factory method,Instance factory method
Injecting dependencies - Constructor Injection,Setter Injection
Dependencies and configuration -Inner beans,Collections (list, set, map, and props elements allow properties)
Other features- depends-on,Lazy-init,Autowiring
Method Injection- for Injecting prototypes into singletons objects
Bean scopes- singleton,prototype,global,session,request,Custom scopes
Lifecycle callbacks- init,destroy
Shutting down the Spring IoC container gracefully in non-web applications
Bean definition inheritance
Container extension points- BeanPostProcessors,PropertyPlaceholderConfigurer etc
Annotation-based configuration- @Required, @Autowired, @Qualifier, @Component, @Service, @Repository
Using filters to customize scanning
Registering a LoadTimeWeaver
Aspect Oriented Programming with Spring
AOP- Aspect,Joint Point,Advice,PointCut,target,Weaving,AOP Proxy
Choosing which AOP declaration style - Spring AOP or full AspectJ
Spring AOP -- @AspectJ or XML for Spring AOP
Spring AOP APIs
Support for AspectJ load-time weaving
Transaction Managemnt
ORM Data Access - Hibernate,JDO,Oracle TopLink,IBatis,JPA etc
Spring MVC
View Technology - JSp & JSTL , Tile,Velocity,FreeMarker,XSTl , Jasper Reports
Spring Remoting
Intergration with Quartz for Scheduling
MethodInvokingFactoryBean - > to call methods of instantiated beans .
Example
<bean id="RequestObject" class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" ref="createdBean"/>
<property name="targetMethod" value="methodToBecalled"/>
<property name="arguments">
<map>
<entry key="xxxxxx" value-ref="yyyyyyyy" />
</map>
</property>
</bean>
Friday, March 13, 2009
Spring in a Nutshell
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment