锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲av无码一区二区三区网站,国产亚洲一区二区精品,亚洲视频免费播放http://m.tkk7.com/yeafee/category/5805.html it's usually better to solve problems with simplicity and finesse rather than muscle.zh-cnWed, 28 Feb 2007 04:01:00 GMTWed, 28 Feb 2007 04:01:00 GMT60Client & Server Validationhttp://m.tkk7.com/yeafee/archive/2006/12/18/88565.html@yeafee@yeafeeMon, 18 Dec 2006 07:58:00 GMThttp://m.tkk7.com/yeafee/archive/2006/12/18/88565.htmlhttp://m.tkk7.com/yeafee/comments/88565.htmlhttp://m.tkk7.com/yeafee/archive/2006/12/18/88565.html#Feedback0http://m.tkk7.com/yeafee/comments/commentRss/88565.htmlhttp://m.tkk7.com/yeafee/services/trackbacks/88565.html
]]> 鍏充簬宸ヤ綔嫻佺殑涓綃?/title>http://m.tkk7.com/yeafee/archive/2006/01/09/27269.html@yeafee@yeafeeMon, 09 Jan 2006 08:27:00 GMThttp://m.tkk7.com/yeafee/archive/2006/01/09/27269.htmlhttp://m.tkk7.com/yeafee/comments/27269.htmlhttp://m.tkk7.com/yeafee/archive/2006/01/09/27269.html#Feedback0http://m.tkk7.com/yeafee/comments/commentRss/27269.htmlhttp://m.tkk7.com/yeafee/services/trackbacks/27269.htmlUse Spring to create a simple workflow engine
]]>Spring in Action 瀛︿範絎旇 2(Understanding inversion of control)http://m.tkk7.com/yeafee/archive/2005/12/13/23684.html@yeafee@yeafeeTue, 13 Dec 2005 07:47:00 GMThttp://m.tkk7.com/yeafee/archive/2005/12/13/23684.htmlhttp://m.tkk7.com/yeafee/comments/23684.htmlhttp://m.tkk7.com/yeafee/archive/2005/12/13/23684.html#Feedback0http://m.tkk7.com/yeafee/comments/commentRss/23684.htmlhttp://m.tkk7.com/yeafee/services/trackbacks/23684.html IoC(Inversion of control)鏄疭pring鐨勫績鑴?鍚潃鎰熻瀹冩瘮杈冩櫐娑┿傚叾瀹炲畠榪滀笉鍍忓惉鐫鐨勯偅鏍烽毦鎳傘備簨瀹炰笂錛屽湪浣犵殑宸ョ▼涓紩鍏oC涔嬪悗,浣犱細鍙戠幇浣犵殑浠g爜浼氬彉寰楅潪甯哥畝鏈達紝鏇存槗浜庣悊瑙e拰嫻嬭瘯銆?BR> 浣嗘槸錛岀┒绔熶粈涔堟槸IoC鍛紵 Injecting dependencies In an article written in early 2004, Martin Fowler asked what aspect of control is being inverted. He concluded that it is the acquisition of dependent objects that is being inverted. Based on that revelation, he coined a better name for inversion of control: dependency injection.
Traditionally, each object is responsible for obtaining its own references to the objects it collaborates with (its dependencies). As you'll see, this can lead to highly coupled and hard-to-test code.Applying IoC, objects are given their dependencies at creation time by some external entity that coordinates each object in the system.That is, dependencies are injected into objects. So, IoC means an inversion of responsibility with regard to how an object obtains references to collaborating objects.
]]>Spring in Action 瀛︿範絎旇 1(A Spring jump start)http://m.tkk7.com/yeafee/archive/2005/12/13/23660.html@yeafee@yeafeeTue, 13 Dec 2005 06:56:00 GMThttp://m.tkk7.com/yeafee/archive/2005/12/13/23660.htmlhttp://m.tkk7.com/yeafee/comments/23660.htmlhttp://m.tkk7.com/yeafee/archive/2005/12/13/23660.html#Feedback0http://m.tkk7.com/yeafee/comments/commentRss/23660.htmlhttp://m.tkk7.com/yeafee/services/trackbacks/23660.htmlSpring jump start
Spring-enabled applications are like any Java application. They are made up of several classes, each performing a specific purpose within the application. What makes Spring-enabled applications different, however, is how these classes are configured and introduced to each other. Typically, a Spring application has an XML file that describes how to configure the classes, known as the Spring configuration file. Listing 1.1 The GreetingService interface separates the service's implementation from its interface.
Noticed that the greeting can be set in two different ways: by the constructor or by the property鈥檚 setter method.
We鈥檙e going to let the Spring container set the greeting property. The Spring configuration file(hello.xml) in listing 1.3 tells the container how to configure the greeting service.
Let鈥檚 dig into the details of this XML file a bit to understand how it works.At the root of this simple XML file is the <beans> element, which is the root element of any Spring configuration file. The <bean> element is used to tell the Spring container about a class and how it should be configured. Here, the id attribute is used to name the bean greetingService and the class attribute specifies the bean's fully qualified class name.
The last piece of the puzzle is the class that loads the Spring container and uses it to retrieve the greeting service. Listing 1.4 shows this class. Listing 1.4 The Hello World main class
The BeanFactory class used here is the Spring container. After loading the hello.xml file into the container, the main() method calls the getBean() method on the BeanFactory to retrieve a reference to the greeting service. With this reference in hand, it finally calls the sayGreeting() method. When we run the Hello application, it prints (not surprisingly)
Buenos Dias!
The real power of Spring lies in how beans can be injected into other beans using IoC. see next........continue!