spring - Application contexts provide a means for resolving text messages? -


one of main advatage stated application context below :-

application contexts provide means resolving text messages

could explain brief example mean?

second there overhead of using application contexts on beanfactory have seen of application using beanfactory?

here declaration of applicationcontext:

public interface applicationcontext extends     listablebeanfactory,     hierarchicalbeanfactory,     messagesource,     applicationeventpublisher,     resourcepatternresolver { 

one of interfaces extends messagesource:

strategy interface resolving messages, support parameterization , internationalization of such messages.

from messagesource javadoc. means can use application context message source application i18n support. spring has small framework resolving messages, pattern replacement, etc.

with regards seconds question: should use smallest possible interface need. when injecting beanfactory, applicationcontext, there no need couple class such huge abstraction. pick going use.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -