Featured Post

Spring application Context and BeanFactory difference

I would like to give elaborated Idea on Spring ApplicationContext and
BeanFactory


BeanFactory
BeanFactory can handle all Beans and gives instantiated Object as and when
client requests .
in this way BeanFactory Reduces the Burden
BenaFactory calls customized bean Lifecycle clas Interfaces suchas
InitializingBean and DisposableBean

ApplicationContext

- ApplicationContext is resolves All text messages by loading i18N Support
- It supports generic way of loading Images
- It Supports Event machanism for which listeners beans have been
registered
- BeanFactory Supprots Programatic way of loading mechanism but application
Context supports declarative way of loading beans
-ApplicationContext itself is resources loader for loading different
resources and files
- MessageResource is another interface which is used to load and resolve
LocalizedMessages by implementing this interface and this is pluggable


Spring Bean Inheritance

Property Inheritance :

This is to inherit the properties from super class to child class


Collection Inheritance

This is used to get super class collections into child class collections
for which u have to set attribute at bean level hich is merged="true"
if u want different collection to be copied to child class collection then
u have to defin a property that is default-merge="true"


Spring Bean WebApplictionContext

This provides following fecilties

Controllers: these are C part of MVC architecture
HandlerMappings : handle the execution of a list of pre and post processors
ViewResolvers : Capable of resolving view names to views
Local Resolver : for resolving Loca,les
ThemeResolvers: for Resolving Themes

Controllers:
AbstractController :

handleRequestInternal()
MultiActionController:
delegate

methodNameResolver
ParameterMethodNameResolver
InternalPathMethodNameResolver
PropertiesMethodNameResolver

CommandControllers:
These are nothing nut ActionForm in struts

AbstractCommandController
AbstractFormController
SimpleFormController
SimpleWizardFormController


HandlerMappings:
SimpleUrlHandlerMapping
BeanNameUrlHandlerMapping

Here Interceptors Can be introduced


Interceptor :
HandleInterceptorAdapter


ViewResolver:
XmlViewResolver
InternalResourceViewResolver
UrlBasedViewResolver
ResourceBundleViewResolver

This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polaris.co.in

Comments

zingalvs said…
nice site.. keep it up..

Popular posts from this blog

[Inside AdSense] Understanding your eCPM (effective cost per thousand impress...