
spring
文章平均质量分 54
hawk7
这个作者很懒,什么都没留下…
展开
-
SpringIoC Container and beans
[code="java"]ApplicationContext context =new ClassPathXmlApplicationContext(new String[] {"services.xml", "daos.xml"});[/code]Using the method T getBean(Stringname, ClassrequiredType) you can re...原创 2010-08-20 14:52:24 · 119 阅读 · 0 评论 -
Resources
1:The Resource interface[quote]Spring's Resource interface is meant to be a more capable interface for abstracting access to low-levelresources.[/quote][code="java"]public interface Resource e...原创 2010-08-21 16:45:32 · 129 阅读 · 0 评论 -
JavaBeans PropertyEditor
主要是学习了解spring如何利用PropertyEditor完成conversion的。参考实现来自网络和spring referenceSpring uses the concept of PropertyEditors to effect the conversion between an Object and a String.Spring has a number of ...原创 2010-08-22 23:39:27 · 228 阅读 · 0 评论 -
Lookup Method Injection
今天看到method injection这块,网上查了下,又了看了下reference,作个总结加备份吧算是,以下实例来自网络,可以运行Lookup method injection使Spring克服当一个bean依赖其他不同生命周期的bean的情况,比如当一个单例bean依赖一个非单例对象的时候。在这种情况下,无论是使用setter注入还是constructor注入都只是在单例对象中维护一个...原创 2010-08-23 14:10:41 · 223 阅读 · 0 评论 -
Spring的事件传播
ApplicationEvent[code="java"]public abstract class ApplicationEvent extends EventObject[/code]ApplicationEventPublisher[code="java"]public interface ApplicationEventPublisher[/code][code="java...原创 2010-08-25 23:52:55 · 160 阅读 · 0 评论