
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>E-cigarette ego-t, Electronic Cigarette Ego-t</title>
	<atom:link href="http://www.5alin.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.5alin.com</link>
	<description>Kimree Electronic Cigarettes like the Kimree Joye eGo-T.</description>
	<lastBuildDate>Tue, 20 Mar 2012 23:17:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Use of Spring 2.5 it Autowired comment IOC (annotation must see)</title>
		<link>http://www.5alin.com/archives/715</link>
		<comments>http://www.5alin.com/archives/715#comments</comments>
		<pubDate>Tue, 20 Mar 2012 23:17:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[disposablebean]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[January 15th, 2012 <br /> use the new features of ]]></description>
			<content:encoded><![CDATA[<p>January 15th, 2012 <br /> use the new features of Spring 2.5 &#8211; Autowired can achieve rapid automatic injection, but no need to add in the xml document inside the bean declaration, greatly reducing the maintenance of the xml document. (Even like this, because even the xml is not a cold). The following is an example: <br /> @ Service annotation to define a bean, automatically according to the bean class name of instance of the first one to write letters to lowercase bean, such as Chinese instantiated as chinese, American instance into american If you need to change the name: @ the Service (&#8220;you change the bean name&#8221;). <br /> in the spring configuration files which only need to add the <context:annotation-config/>, and <context:component-scan base-package="需要实现注入的类所在包"/> can base-the package = &#8220;*&#8221; indicates all of the class. <br /> Man interface in front of marked the @ Autowired and @ Qualifier annotation makes Man interface can be injected by the container when the Man interface there are two implementation class must specify which one to inject, use the first letter of the implementation class lowercase string to inject. Otherwise it can be omitted, just write the _AT_ Autowired <br /> it can take advantage of Java reflection mechanism, the class structure information, this information can be effective in reducing the configuration. Attribute name, type, and other information such as the use of JPA annotations configuration ORM mapping, we do not need to specify the PO, if the field of relational tables and PO attribute name, type the same, you do not even need to write the task attribute mapping information &#8211; because the information can be obtained through the Java reflection mechanism. <br /> annotations and Java code in a file, the XML configuration uses a separate configuration file, most of the configuration information is not adjusted, after the completion of the program development, if the configuration information and Java code together, help to strengthen the program cohesion. XML configuration file, the programmer to write a function, often in the program files and configuration files kept switching inconsistent on this way of thinking will reduce the efficiency of development. <br /> In many cases, comments configuration than the XML configuration more popular, the comment with further popular trend. Spring 2.5 enhancements is the introduction of a lot of comment categories, Now you can use the comments configuration to complete most of the functionality of XML configuration. In this article, we l show you about using annotations to the bean definition and dependency injection. <br /> use annotation configuration, the first to review the traditional on how to configure the bean and complete the establishment of dependencies between Bean. The following are the three classes, respectively, Office, Car, and Boss, the three classes in the Spring container configuration as bean: <br /> of the Office and Car declaration in a Spring container bean, and injected into the Boss, bean: The following is the use of traditional XML to complete this configuration file beans.xml: <br /> Spring container has been properly completed the work of creation and assembly of Bean. <br /> Spring 2.5 introduces a the @ Autowired comment, it can be a class member variables, methods, and constructor label to complete the automatic assembly of the work. Look at @ Autowired member variables automatically injected code: <br /> Spring through a BeanPostProcessor on @ Autowired, parse, so let work @ Autowired, must be Statement AutowiredAnnotationBeanPostProcessor bean in the Spring container. <br /> In this way, when the start of the Spring container, AutowiredAnnotationBeanPostProcessor will scan all of the Spring container bean, When Bean with @ Autowired comment, find a match (the default type of match) bean, and injected go to the corresponding place. <br /> accordance with the above configuration, the Spring will be directly using the Java reflection mechanism automatically injected into the Boss in the car and office, two private member variables. Member variable with @ Autowired, you could have to their setter methods (setCar () and setOffice ()) is removed from the Boss. <br /> Of course, you also can be marked by @ Autowired method or constructor, look at the following code: <br /> At this time, the @ Autowired will find the way to be marked into the parameter type of bean, and calls automatically injected bean. Use of the following annotation on the constructor: <br /> Boss () constructor two into the parameter, namely, car and office, _AT_ Autowired will be looking for and they match the type of bean, them as Boss (Car car, the Office office) into the Senate to create the Boss, bean. <br /> @ Autowired comment by default automatically injected into the Spring container that matches the number of candidate Bean must have one and only one. When you can not find a matching Bean, the Spring container will throw BeanCreationException exception, and that must have at least a matching bean. We can do an experiment: <br /> due to the Office bean is commented out, so the Spring container will not type for the Office of the Bean, Boss office properties marked @ Autowired When you start the Spring container when the exception arises. <br /> can not determine the Spring container must have a class beans, can be automatically injected class Bean can use the @ Autowired (required = false), which tells the Spring: looking for less than a matching Bean is not an error. Look at specific examples: <br /> Of course, under normal circumstances, place @ Autowired are need to inject Bean use of auto-inject and allow injection only general in the development of or testing of encounter (eg, in order to quick start the Spring container, only the introduction of a number of modules at the Spring configuration file), so the @ Autowired (required = false) will be rarely used. <br /> and can not find a type to match Bean opposite error is: If you have more than one candidate bean Spring container, the Spring container also throw BeanCreationException exception at startup. Consider the following example: <br /> in the Spring container configured with two types of Office type of bean, the Spring container will not be able to determine when the member variables of the Boss office automatically injected in the end use Which one bean, an exception occurs. <br /> Spring allows us to inject the name of the Bean specified by the @ Qualifier annotation, such ambiguity is eliminated by the following methods to resolve the exception: <br /> @ Qualifier (&#8220;office&#8221;) in the office is the name of the Bean, so the @ Autowired and @ Qualifier when used in combination, auto-injection strategy from byType into byName the. @ Autowired can annotate the member variables, methods, and constructor, and the @ Qualifier annotation object is the member variables, methods, into the parameter, the constructor into the parameter. It is because of the different annotation object, so Spring does not the @ Autowired and the @ Qualifier unified into a single annotation class. Here is the annotated code into the member variables and constructor parameters: <br /> @ Qualifier only and @ Autowired, in combination, @ Autowired useful supplement. In general, the @ Qualifier method signature into the parameter comment will reduce the readability of the code is relatively good, while the members of the variable comment. <br /> Spring not only to support your own defined the @ Autowired comment also supports several annotations defined by JSR-250 specification, they are @ the Resource, @ PostConstruct and @ PreDestroy,,. <br /> @ Resource role is equivalent to _AT_ Autowired, only the @ Autowired press byType automatically injected surface @ Resource default injected fills by byName automatically. @ Resource has two attributes is more important, namely the name and type, the Spring will be the name of the name attribute of the @ Resource annotation resolves to Bean, and the type attribute is parsed for the bean type. If you use the name attribute, use the auto-injection strategy byName, using the type attribute to use byType automatic injection strategy. If neither name nor specify the type attribute, then use reflection byName automatic injection strategy. <br /> Resource annotation class in the Spring distribution lib/j2ee/common-annotations.jar class package before use must be added to the class library project. Look at an example using @ Resource: <br /> Under normal circumstances, we do not need to use the comment similar to the @ Resource (type = Car.class), because the bean type of information available through the Java reflection from the code to obtain. <br /> to make the JSR-250 annotations to take effect, in addition to label these comments in the Bean class, also need to be registered in the Spring container is responsible for dealing with these comments BeanPostProcessor: <br /> CommonAnnotationBeanPostProcessor a BeanPostProcessor interface, which is responsible for scanning using the JSR-250 annotated beans, and the appropriate action. <br /> Spring container Bean is a life-cycle, Spring allows to perform a particular operation in the bean initialization is complete and before Bean destruction, either through the early realization of the InitializingBean / DisposableBean which interface to customize after initialization / destruction of the previous methods of operation, can also <bean> elements init-method/destroy-method attributes specify the initialization / destruction is called before the operation. Spring life cycle, the author in Chapter 3 of &#8220;proficient in the Spring 2.x-business application development with Explanations are described in detail, interested readers can refer to. <br /> the JSR-250 after initialization / destruction before the method specified the definition of two annotation classes are @ PostConstruct and @ PreDestroy, these two comments can only be applied. Marked @ PostConstruct annotated method will be invoked in the instance of the class after marked the @ PreDestroy method will be called before the class destruction. <br /> You only need to be marked before the method @ PostConstruct or @ PreDestroy, these methods will be Bean is initialized or destroyed prior to the implementation of the Spring container. <br /> we know, whether it is through the realization of the InitializingBean / DisposableBean which interface or configure through <bean> elements init-method/destroy-method property, only for Bean specify an initialization / destruction approach. Using the @ the PostConstruct, @ PreDestroy comment, but you can specify multiple initialization / destruction methods, those methods are marked @ PostConstruct or _AT_ PreDestroy comment will be executed in the initialization / destruction. <br /> through the following test code, you will be able to see the bean initialization / destruction method is being executed: <br /> At this time, you will see a marked @ PostConstruct postConstruct1 () method will be the start of the Spring container create Boss, Bean is triggered execution, while the marked the @ PreDestroy comments preDestroy1 () method will be destroyed before the Spring container is closed Boss, bean trigger execution. <br /> Spring 2.1 adds a new context of the schema namespace, the namespace annotation-driven, the properties file into load time weaving and other functions to provide a convenient configuration. We know that the comment itself will not do anything, it provides only the metadata information. To make the metadata information real work must be allowed to handle these data processor to work. <br /> we described earlier AutowiredAnnotationBeanPostProcessor and CommonAnnotationBeanPostProcessor is to deal with these annotation data processor. But directly in the Spring configuration file defines the beans seemed more clumsy. Spring provides us with a convenient register these BeanPostProcessor, This is <context:annotation-config/>. Consider the following configuration: <br /> in the configuration file using the context namespace declaration <beans> element context namespace. <br /> Although we can the @ Autowired or @ Resource in the bean class to use automatic injection capabilities, but Bean is defined in the XML file through <bean> &#8211; that is, in the XML configuration file definition of the bean, by the @ Autowired or @ Resource Bean member variables and methods into parametric or constructor function into the parameter automatically injected. Whether defined through annotations bean from an XML configuration file to completely remove the bean defined in the configuration it? The answer is yes, through the Spring 2.5 @ Component annotation can achieve this goal. <br /> only in the class definition, use the @ Component annotation can be a class definition in a Spring container bean. The following code defines the Office for a bean: <br /> In this way, we can in the Boss class by @ Autowired injection in front of the definition of Car and Office bean. <br /> @ Component has an optional into the parameter used to specify the name of the Bean in the Boss, we will be Bean name is defined as &#8220;boss&#8221;. Under normal circumstances, the bean is a singleton, the need to inject Bean only through byType strategy can be automatically injected, so no need to specify the name of the Bean. <br /> @ Component annotation, the Spring container must be enabled in class scanning mechanism to enable annotation-driven bean definitions and annotation-driven bean automatically injected into the strategy. Spring 2.5 context namespace extension to provide this feature, see the following configuration: <br /> here, all defined by <bean> element Bean configuration content has been removed, requiring only add a line <context:component-scan/> configuration to solve all problems &#8211; Spring XML configuration file to get the ultimate simplification (of course, the configuration metadata or only exist in a note Bale). <context:component-scan/> of the base-package attribute specifies the need to scan the class package, class package recursively all sub package of the class will be processed. <br /> <context:component-scan/> also allows the custom filter certain types of base package included or excluded. Spring supports the following four types of filters, by the following table shows: <br /> annotation the if com.baobaotao.SomeAnnotation a comment class, we can use the annotated class filtered out. <br /> class name specified by the fully qualified class name filter, you can specify com.baobaotao.Boss into the scan will be excluded from the com.baobaotao.Car. <br /> It is noteworthy that <context:component-scan/> configuration not only enabled the annotation-driven class packages to be scanned in order to implement the annotation-driven bean defined function, but also enabled automatic injection functions ( that implicit in the internal registered AutowiredAnnotationBeanPostProcessor and the CommonAnnotationBeanPostProcessor is) When using <context:component-scan/> <context:annotation-config/> removed. <br /> default defined through the @ Component bean is a singleton, if you need to use the scope Bean @ Scope annotation to achieve our goals, such as shown in the following code: <br /> In this way, when access to the boss bean from the Spring container, each time you return the new instance. <br /> In addition to providing the @ Component annotation Spring 2.5 also defines several special semantic annotation, they are: the _AT_ Repository, @ Service and @ the Controller. 3 annotations and @ Component is equivalent to the current version of Spring, but the class names from the comment, it is easy to see that the 3 Notes and the persistence layer, service layer and control layer (Web Tier) counterparts. 3 Notes and @ Component is nothing new compared to Spring will add special features in a future version. So, if the Web application uses a classic three-tier hierarchy, then, the best in the persistence layer, service layer and control layer, @ Repository, @ Service and @ Controller annotated class stratification, and the @ Component more neutral class notes. <br /> Notes configuration is not necessarily inherently superior to the XML configuration. Bean dependencies (such as Service uses which DAO classes), this configuration information does not occur in the deployment adjustment, then the annotation configuration is superior to the XML configuration; if this dependency will deploy adjustment, the XML configuration is clearly better than the annotation configuration, because the comment is the adjustment of the Java source code, you need to rewrite the source code and recompile it can be implemented to adjust. <br /> if the bean is not written in class (such as the JdbcTemplate, SessionFactoryBean, etc.), the annotation configuration will not be able to implement the XML configuration is the only available way. <br /> annotation configuration is often the class level, the XML configuration can be expressed in more flexible. Example, compared to the @ Transaction transaction annotation aop / tx namespace transaction configuration is more flexible and simple. <br /> Spring annotation configuration in 2.1 after strong support for the annotation configuration features into Spring 2.5 one of the biggest bright spot. Rational use of Spring 2.5 annotation configuration can effectively reduce the workload of the configuration to improve the program cohesion. But this does not mean that traditional XML configuration toward extinction, the configuration of the third-party class Bean, as well as those such as the data source, cache pool configuration of persistence layer templates of operation, transaction management, XML configuration still has an irreplaceable status. <br /> <img src = "http://b.bst.126.net/newpage/images/microblog.png?1" onClick = "window.open ( ttp://b.bst .126.net/newpage/images/microblog.png? 1 "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this ) "TYPE =" audio / mpeg "> <br /> <img src =" http://b.bst.126.net/newpage/images/microblog.png?1 "onClick =" window. open ( ttp://b.bst.126.net/newpage/images/microblog.png?1 "onerror =" this.src = ttp://cache.soso.com/img/blog/p1 . gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> <br /> <img src =" http://b.bst.126.net/style/common/tuijian . png "onClick =" window.open ( ttp://b.bst.126.net/style/common/tuijian.png "onerror =" this.src = ttp://cache.soso.com / img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE =" audio / mpeg "> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/715/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alert to manually load the spring configuration files causes the database session can not be released</title>
		<link>http://www.5alin.com/archives/714</link>
		<comments>http://www.5alin.com/archives/714#comments</comments>
		<pubDate>Tue, 20 Mar 2012 23:17:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[disposablebean]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[8 hours ago <br /> Problem phenomenon: in Web appl]]></description>
			<content:encoded><![CDATA[<p>8 hours ago <br /> Problem phenomenon: in Web applications will encounter this situation, some places can not be obtained through the web which ApplicationContext bean springIOC container, such as the WebService interface to the outside world This time you need to manually ClassPathXMLApplicationContext and other ways to get the ApplicationContext, the code is as follows: <br /> the ApplicationContext context = new ClassPathXmlApplicationContext with (<br /> &#8220;applicationContext-*. xml&#8221;); <br /> IXXXService xxxservice = (IXXXService) context <br />. getBean (&#8220;xxxservice&#8221;); <br /> This is a typical load. <br /> However, it is this seemingly everywhere are loading behind the BUG foreshadowed. <br /> xxxservice specific class of business it down and control transaction and DAO dependent, here on behalf of a classic and simple the service specific configuration omitted, it is worth mentioning that the scope, there is no specified, the default is a single case. <br /> everything is so smooth, like this service code should be written at least a few hundred, may be more you write, the process is still very intoxicated, modify finished. Test, test. What? ORA-12519 error! Hell, I build this set is known as a quick and easy SSH2 framework has a number of projects received numerous tried and tested, wrote no less than several hundred times the service actually reported ORA-12519 error. <br /> quickly open PLSQL, check the database for the session, the Select Count (1) the From v The $ the session the Where t.SCHEMANAME = of XX <br /> With the service implementation, the session number is increasing , there is no reduction of meaning. Yes, when is. <br /> Solution: This error occurs in the tried and tested framework which I was quite disturbed, there could be such a vulgar error. Organize your thoughts begin to analyze: this code is the only different is, in the web application is provided by the container load the bean, the only container to start will load the xml. The focus should be concerned about the loading of XML. <br /> Here we use the ApplicationContext interface. Note the spring documentation 3.5.1.2.2 gracefully close the springioc container in a non-web applications. It is used here AbstractApplicationContext, made bean, and then perform a context.reGISterShutdownHook (); <br /> experiment an ApplicationContext changed to AbstractApplicationContext to execution context.close (). The outcome of the session has been normal recovery, the truth is beginning to emerge. <br /> Conclusion: each time you load the context of practice is equivalent to always generate a new spring container, in the case of default of a single case, if you do not turn off the context. dataSource created in which the service relies on the DAO had been in existence (including class) generated in all cases a single case, from the log of the session under the jurisdiction of the service transaction, it has been close, but the SessionFactory is still there. Closed container, and specify a dataSource instance configuration in the destroy-method = &#8220;close&#8221;, dataSource, which a single case will not be released. <br /> spring the document life cycle, described very clearly. By DisposableBean or specified destroy-method can be a good release of a single case of an object. Prototype object of type requires the client to explicitly specify the release, the release of the object is completely client-side control, the spring is not responsible for the release. <br /> Therefore, to improve the load of the context as much as possible to load several times, it is not the case, we must remember to close. <br /> Lastly, write arbitrary code, the easy way, without thinking, is the root of the evil of this BUG. <br /> http://dev.21tx.com/2009/04/16/14101.html </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/714/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Life Cycle Detailed &#8211; page life cycle</title>
		<link>http://www.5alin.com/archives/713</link>
		<comments>http://www.5alin.com/archives/713#comments</comments>
		<pubDate>Tue, 20 Mar 2012 23:17:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[system.idisposable]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[The first stage in the October 12, 2011 <br /> pag]]></description>
			<content:encoded><![CDATA[<p>The first stage in the October 12, 2011 <br /> page life cycle is initialization. When the Init event occurs, all the controls have been instantiated. Aspx source files statically declared and whichever is the default value. It should be noted that when the view state information is not available. <br /> each control can take advantage of this good time for the implementation of any need to be completed in the first minute to save the view state and rendering the output of the last update operation. <br /> save the ViewState property to the string rewriting SaveViewState method can modify the ViewState property. <br /> override the Render method to change the presentation of the various control mechanisms. The method to get an HTML writer object, and use that object to gather all the HTML text that will be generated for the control. The default implementation of the Page class Render method includes a recursive call on all members of the control. For each control the page calls the Render method and HTML output into the cache. <br /> Unload event is the last surviving signs of a page, the event occurred before the page object to be lifted. In this event, you should release may be occupied by any key resources (eg, documents, graphics, objects, database connections). After this event browser receives the HTTP response packet and displays the page. When a page request is sent to the WEB server, whether the event is submitted by the page or page redirects to stimulate the page in its creation to the release process will run a series of events. An ASP.NET page is created to the release process consists of 10 events. <br /> (1) the object is initialized Init event: the initialization of the page logo is the Init event. The page control (including the page itself) are in their initial Form initialized for the first time. Successfully created the page control tree, the application to stimulate this event. When the Init event occurs, all the controls of the static statement. Aspx source file to instantiate and whichever is the default value. It should be noted that this is also the view state information is available. Can override the OnInit method, but the system does not guarantee that these control instance is created according to what order. <br /> (2) loading view: After initialization, page framework to immediately load the page view state (ViewState). The so-called view state is the name / value pairs, for example, you can save the ID of the TextBox control and the Text property value. It is generally used to persist in a round trip to the server, that is involved in the HTTP request and response. <br /> page view state is stored in the<br />
<input type="hidden"> field, as the value of the _VIEWSTAE record. The view state by ASP.NE automatic maintenance. Rewrite LoadViewState method components, developers can control how to restore the view state, as well as how to insinuate to the internal state. LoadViewState method is to obtain the last state in the ViewState, the page control tree structure recursively traverse the entire tree to restore the state corresponding to each control. <br /> (3) handling postback data: to restore the view state, control the state of the species of the page last time with the browser render the page the status of these controls are the same. Next you need to update the state of these controls to send to the client. <br /> back to the data processing stage, individual controls have the opportunity to update their status, in order to accurately reflect the corresponding HTML element on the client status. For example, a server TextBox control to the corresponding HTML element<br />
<input type=text> postback data stage, the TextBox control will retrieve the current value of the<br />
<input> tag and use it to refresh its internal state. Each control is responsible for extracting the corresponding value from the data sent to and update some of its properties. The TextBox control will update the Text property of the CheckBox control to refresh its Checked property. Matching relationship between the server controls and HTML elements is determined by the two ID. <br /> page framework will submit data on the control achieve IpostBackDataHandler interface then stimulate LoadPostData event, interface controls IpostBackDataHandle by the page parsing, so you can return data to update the control state . Identify controls, ASP.NET the unique identifier by matching the controls to update the correct control of the identifier has a name value set and the name-value pairs. This is the specific page each control requires a unique identifier for one of the reasons. The other steps are the framework to complete, such as determining the basic attributes of each identifier is unique in the environment and control. <br /> <br the /> LostPostData method prototype is as follows: <br /> Public virtual bool LoadPostData (string postDatakey, the NameValueCollection postCollection) <br /> PostDataKey identifies the control keywords, you can understood as the control ID, postCollection include postback data collection, can be understood as the view state value. The method returns a bool, if true, indicates the control state to change the postback; otherwise false. Page framework will keep track of all the control and returns true control call RaisePostDataChangeEvent event. <br /> the LoadPostData methods is defined by the System .. Web.WebControls.Control, and add a server control is inherited from the System .. Web.WebControls.Control, postback data processing does not require intervention. <br /> (4) the page is loaded the Load: the end of the postback data processing phase, all the controls in the page are updated according to the input on the client to change state. At this point, the page stimulate the OnLoad event. For this event, I believe most of my friends will be more familiar with the Page_Load method in the generated pages using Visual Studio.Net is the response to the Load event, For each request, the Load event will trigger the Page_Load method is executed. Can use this method to perform the initialization of some pages, such as the preparation of a good database connection string. Reference of the event, in order to improve performance, typically use the IsPostBack property of Page class, the judge is not data postback. <br /> (5) back hair change the notice RaisePostDataChanged: (3) above, IPostBackDataHandler interface control is the correct return data updates in all, each control has a Boolean value The logo, which identifies its data submitted since the last change control is to change or to maintain its value. And ASP.NET search page to find any display control data is to change the logo and stimulate RaisePostDataChanged. RaisePostDataChanged event until after the Load event, all the controls have been updated after the excitation. This ensures that in the control returns to the data update, the data of other controls RaisePostDataChanged event has not been manually changed. Although it could be the basis of Page own definition of the events of data changes, but usually this event by much use. <br /> (6) to handle the postback event the RaisePostBackEvent: When the return updates cause data changes caused by the server-side events, causing the returned object will be processed in the RaisePostBackEvent event. This lead to the return of the object is often a button is clicked or the state change caused the postback controls. Such as Button trigger music Onclick events, the client has modified the text of a text box, the AutoPostBack is set to true, the TextChanged event is triggered. <br /> a lot of code is executed in this event, because this is the ideal location to control the event-driven logic. In order to ensure the correctness of the data rendered to the browser, after the series of postback event, the RaisePostBackEvent event was eventually fired. Based on consistency, the change in returns control to be executed until the function is updated. Work to be done in the actual ASP.NET development work before this event handling code. <br /> (7) pre-rendered The PreRender: postback event, the page is ready to render. The signs of this stage is the PreRender event. Each control can take advantage of this good time for the implementation of any need in the first minute to save the view state and rendering the output to complete the last update operation. The final processing of the request will change to play a response from the server, pre-rendered at this stage is the implementation of the change before the final presentation of the state, because more of its properties before showing a control to generate an HTML, such as the Style property. This is a typical example, before this pre-rendered, you can change the Style of a control, perform pre-rendering the Style saved display of HTML style information, as the render phase. <br /> (8) to save the state of the SaveViewState: the next state of the SaveViewState in this state all the controls and the page itself can refresh own SaveState collection. The view state is then to be serialized, hashed, Base64 encoding and associated hidden since the end of VI-EMSTATE. <br /> (9) presents the view of the Render: here, in fact pages processing the request basically came to an end, in the Render event, the calling object is to present them to HTML, and then collect the HTML sent to the customer. Restructuring after the customer receives the HTML tags, and ultimately displayed to the customer. When the Render event is overloaded, developers can create HTML value for the browser, any HTML page creation are not yet in force. Render method to use the HtmlTextWriter object parameters by generating HTML to the browser. This is mainly used for the development of custom controls. <br /> (10) Disposal Disposed: final cleanup operations before the destruction of the control. At this stage must release expensive resources, such as the withdrawal of the memory, the database connection. <br /> (11) uninstall Unload: a page of the last surviving symbol of the Unload event, which occurred before the page object is lifted. In this event, you can call the Dispose method to release the occupied resources (eg, file, graphic objects and database connections) as possible. <br /> / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / <br /> Page handling process to explain <br /> Page class is derived relations <br /> <br / > Page is derived from the TemplateControl in the TemplateControl derived from Control. Their definitions are as follows: <br /> / / Control derive from object to achieve the four interfaces <br /> public class the Control: System.ComponentModel.IComponent <br /> < br /> System.IDisposable, <br /> System.Web.UI.IParserAccessor, <br /> System.Web.UI.IDataBindingsAccessor <br /> {} <br /> / / the TemplateControl derives from Control, to achieve the interface System.Web.UI.INamingContainer <br /> public abstract class the TemplateControl: Control, System.Web.UI.INamingContainer <br /> < br /> {} <br /> / / Page from TemplateControl derived, the interface of the System.Web.UI. the IHttpHandler <br /> public class Page: the TemplateControl, System.Web.IHttpHandler < br /> <br /> {} <br /> Page you write, you _aspx.cs file prepared by the class that derives from Page, this inheritance relationship is when you add a WebForm page, Visual Studio. net you have built. Aspx page at runtime will be interpreted as a derived class from class _aspx.cs file. (Supplementary information). <br /> question of </p>
<p> guess <br /> When IIS receives a request to the aspnet_isapi.dll handle to the aspx page. aspnet_isapi and then do the following things: <br /> the MyPage __ p; <br /> __ p = new the MyPage (); <br /> __ p.ProcessRequest (System.Web.HttpContext Current) <br /> The above is my personal estimation, what the truth is not so, I will find the Microsoft engineers answer! I did not find in System.Web.dll il, to produce the Page instance, the Page class instance creation aspnet_isapi.dll made, but the aspnet_isapi.dll not use. NET written in its internal operation is how unable to get known. <br /> following is not a guess! <br /> the ProcessRequest (HttpContext) method <br /> of the ProcessRequest Page (System.Web.HttpContext): <br /> public virtual void the ProcessRequest ( Sunrise.Web.HttpContext context) <br /> {<br /> this.SetIntrinsics (context); / / basic initialization <br /> this.ProcessRequest (); / / process the request <br />} <br /> <br the /> SetIntrinsics method. <br /> you can see from the above code, the first call SetIntrinsics (HttpContext context) method, SetIntrinsics the role of the basic initialization of member variables of Page. SetIntrinsics are as follows: <br /> / / initialize the basic setup _context _request, _application the _cache initial value <br /> private the void SetIntrinsics (HttpContext context) <br / > <br /> {<br /> this._context = context; <br /> this._request = context.Request; <br /> this._response = context. Response; <br /> this._application = context.Application; <br /> this._cache = context.Cache; <br /> if (this._clientTarget! = null ) {<br /> if (this._clientTarget.Length> 0) {<br /> this._request.ClientTarget = this._clientTarget; <br />} <br />} <br /> / / to tune TempalateControl the HookUpAutomaticHandlers () method to initialize the basic event <br /> / /: Init, Load, the DataBinding The PreRender, Unload , Error, <br /> / / AbortTransaction, CommitTransaction <br /> this.HookUpAutomaticHandlers (); <br />} <br /> ProcessRequest method < br /> <br /> then began the implementation of ProcessRequest () method is as follows: <br /> try <br /> {<br /> if (this.IsTransacted ) / / if the transaction state <br /> {<br /> this.ProcessRequestTransacted the (); <br />} <br /> else / / non-transaction state <br /> {<br /> this.ProcessRequestMain (); <br />} <br /> the <br the /> this.ProcessRequestEndTrace (); < br /> <br />} <br /> finally <br /> {<br /> / / release resources _request, _response set to null, and perform UnloadRecursive (true) <br /> this.ProcessRequestCleanup (); <br />} <br /> ProcessRequestMain method <br /> through the above code know when a Page non-transaction mode, to response ProcessRequestMain (). In fact, the transaction mode is also to call ProcessRequestMain (). The following pseudo-code on ProcessRequestMain () method: <br /> / / step1 the call Control.InitRecursive () recursive initialization Control the OnInit () method will be invoked at this time <br /> <br the /> this.InitRecursive (null); <br /> / / If it is back to pass state <br /> <br the /> if (this.IsPostBack in) <br /> {< br /> <br /> / / step2 loading the ViewState <br /> / / / loading the ViewState of the Page Control the LoadViewState () method will be called <br /> the this. LoadPageViewState (); <br /> / / step3 handle the return data Control realized System.Web.UI.IPostBackDataHandler, and <br /> / / LoadPostData () method at this time is called <br /> this.ProcessPostData (this._requestValueCollection, true); <br />} <br /> / / step4 the call Control.LoadRecursive () method to load SubControls <br /> / / Control the Load () method is called at this time <br /> this.LoadRecursive (); <br /> / / If the returned status <br /> if (this.IsPostBack) <br /> {<br /> / / step 5 again to deal with unhandled return data after <br /> < br /> / / Note the second call when the second argument is false, while the first is true <br /> / / return the data may be used to handle the OnLoad Control created the data? ? <br /> <br the /> this.ProcessPostData (this._leftoverPostData, false); <br /> / / step6 response data change event, <br /> / / Control to achieve the System . the interface Web.UI.IPostBackDataHandler <br /> / / Control RaisePostDataChangedEvent () method at this time call the /> this.RaiseChangedEvents of the <br /> <br (); <br /> <br / > / / step7 response return event __dopostback () <br /> / / Control to achieve the System.Web.UI.IPostBackEventHandler interface, the RaisePostBackEvent Control () method is executed at this time <br /> < br /> this.RaisePostBackEvent (this._requestValueCollecti on); <br /> / / step8 calling Control PreRenderRecursiveInternal of () <br /> / / Control the OnPreRender () method in this <br /> this.PreRenderRecursiveInternal is called (); <br />} <br /> / / step9 BuiltTree build the ViewState <br /> / / ViewState ViewState is encoded by LosFormatter stored in the Trace in <br /> <br the /> this.BuildProfileTree (&#8220;ROOT&#8221;, this.EnableViewState); <br /> / / of step10 save Page ViewState <br /> / / Control the SaveViewState () method <br /> this.SavePageViewState the (); <br /> / / step11 output <br /> / / Control the Render () method is called at this time <br /> this.RenderControl (this.CreateHtmlTextWriter (this. Response.Output)); <br /> <br the /> ProcessRequestMain method icon < br /> <br /> the Init <br /> Load the ViewState <br /> Load the PostData <br /> Load <br /> Load the PostData <br / > <br /> RaiseChangeEvents <br /> <br the /> RaisePostBackEvents <br /> BuildProfileTree (viewstate to coding) <br /> SaveViewState <br /> the Render <br /> Dispose <br /> Unload <br /> the generated HTML code <br /> the OnInit () method is called <br /> the OnLoad () method is called <br /> processing data <br /> return again to return data <br /> response data modification event, such as a TextBox TextChagned <br / > <br /> response postback event <br /> of the client __dopostback <br /> ProcessRequestTransacted method <br /> In fact, in the state of affairs, is also a call ProcessRequestMain (), we look at the look ProcessRequestTransacted code: <br /> bool V_0; <br /> <br the /> System.Web.Util.TransactedCallback V_1; <br /> V_0 = false; <br /> < br /> / / create a transaction callback delegate <br /> V_1 = new System.Web.Util.TransactedCallback (this.ProcessReq uestMain); <br /> / / in the transactional environment to call ProcessRequestMain () <br /> System.Web.Util.Transactions.InvokeTransacted (<br /> V_1, <br /> the <br /> (System.EnterpriseServices.TransactionOption,) (this _transactionMode), <br /> ref V_0 <br />); <br /> if (V_0) {<br /> this.OnAbortTransaction (System. EventArgs.Empty); / / terminate the transaction <br />} <br /> Else {<br /> the <br the /> this.OnCommitTransaction (System.EventArgs.Empty); / / submit <br />} of the transaction <br /> <br the /> InitRecursive method <br /> ProcessRequestMain method, the first implementation of Control InitRecursive method. InitRecursive in the OnInit method is executed. As follows: <br /> internal void InitRecursive (System.Web.UI.Control namingContainer) / / ok <br /> {<br /> string V_0; <br / > <br /> int V_1; <br /> int V_2; <br /> System.Web.UI.Control V_3; <br /> if (this._controls! = null) <br /> {<br /> / / flag [128] realized System.Web.UI.INamingContainer interface <br /> if (this. flags [128]) {<br /> namingContainer = this; <br />} <br /> / / set _controls read-only and return to the original _readOnlyErrorMsg , the saved in V_0 <br /> V_0 = this._controls.SetCollectionReadOnly (&#8220;Parent_colle ctions_readonly); <br /> V_1 = this._controls.Count; <br /> for (V_2 = 0; V_2 <V_1; V_2    ) <br /> {<br /> V_3 = this._controls [V_2]; <br /> V_3._namingContainer = namingContainer; <br /> if (namingContainer! = null) <br /> {<br /> if ((V_3._id == null) </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/713/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spring-based Annotation dependence into</title>
		<link>http://www.5alin.com/archives/712</link>
		<comments>http://www.5alin.com/archives/712#comments</comments>
		<pubDate>Tue, 20 Mar 2012 23:17:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[disposablebean]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[March 9, 2012 Spring Annotation dependence into <b]]></description>
			<content:encoded><![CDATA[<p>March 9, 2012 Spring Annotation dependence into </p>
<p> @ Repository, @ Service, @ the Controller and @ Component class identified as bean <br /> Spring since the beginning of 2.0 version, started incorporating some of the annotations to simplify the development of the Spring. @ Repository annotation will belong to a group of first introduction of, it is used for the Data Access Layer (DAO Layer), identified as the Spring bean. Specific just the label of the annotation can be in the DAO class. Meanwhile, in order to let Spring be able to scan the class path of the class and identify the @ Repository annotation Bean automatic scanning function is enabled in the XML configuration file, which by <context:component-scan/>. As follows: / / First use the @ Repository, the DAO class declaration for the bean the package bookstore.dao; @ Repository, public class the implements UserDaoImpl UserDao {&#8230;} / / Second, the automatic scan function to start the Spring XML configuration file <beans ... > &#8230;&#8230; <context:component-scan base-package="bookstore.dao" /> &#8230; </ beans> <br /> so, we no longer need to explicitly in the XML to use <bean / > bean configuration. Spring in the container during initialization will automatically scan all class files specified by the base-package package and its subpackages, all marked with the @ Repository classes will be registered for the Spring bean. <br /> Why the @ Repository, can only be marked in the DAO class? This is because the role of the annotation is not only the class identified as bean, at the same time, data access exception thrown in the class it can be marked package for Spring data access exception type. Spring itself provides a rich and has nothing to do with the specific data access technology data access exception structure for the exception thrown by the package different persistence layer framework, making the exception independent of the underlying framework. <br /> Spring 2.5 @ Repository on the basis of an increase of the function is similar to the three additional annotation: @ the Component the _AT_ Service, _AT_ Constroller, were used for the different levels of software systems: @ Component is a pan- the concept, only represents one component (bean), can act at any level. <br /> @ Service is usually applied in the business layer, but the function is the same as @ Component. <br /> the <br /> @ Constroller, usually acting on the control layer, but the function is the same as the @ Component. <br /> by the class using the @ Repository, @ the Component, @ Service and annotation @ Constroller, Spring will automatically create a corresponding BeanDefinition objects and registered in the ApplicationContext. These classes became the Spring managed components. These three annotations in addition to the role of different software levels, and its use with the @ Repository is identical. <br /> In addition, in addition to the above four notes, the user can create custom annotations, and then in the annotation @ Component annotation on the custom annotation it will have the same functionality with the @ Component . However, this feature is not commonly used. <br /> When a Bean is automatically detected, it will generate the bean name that scanner BeanNameGenerator strategy. By default, contains the name attribute of @ the Component, @ Repository, @ the Service @ the Controller, will name value as the bean name. If this annotation does not contain a name value, or the custom filter component found, the default bean name is lowercase at the beginning of the non-qualified class name. If you do not want to use the default bean naming strategy, can provide a custom naming strategy. First to achieve BeanNameGenerator interface, be sure to include a default no-argument constructor. And then configure the scanner to provide a fully qualified class name, as follows: <beans ...> <context:component-scan base-package="ab" name-generator="a.SimpleNameGenerator"/> </ beans > <br /> Spring bean XML configuration The Notes are identified bean, the default scope is the &#8220;singleton&#8221; in order to meet these four annotations, marked Bean at the same time be able to specify the Bean The scope of the Spring 2.5 introduces the @ Scope annotation. Simply provide the name of the scope when using the annotation, as follows: @ Scope (&#8220;the prototype&#8221;) @ Repository, public class Demo {&#8230;} <br /> If you would like to provide a custom role domain parsing strategy without using annotation-based approach, simply achieve ScopeMetadataResolver interfaces, be sure to include a default constructor with no parameters. Fully qualified class name when configuring the scanner: <context:component-scan base-package="ab" scope-resolver="footmark.SimpleScopeResolver" /> <br /> @ PostConstruct and @ PreDestroy, specified life cycle callback method <br /> Spring bean after it by the Spring IoC container management, initialization and destruction (the prototype type initialized by the container from the container without container management), we usually do not need to concern container Bean initialization and destruction operations, after a constructor or factory method to create by Spring Bean is the initialization has been completed and immediately available. In some cases, however, may need our hand to do some additional initialization or destruction operation, which is usually for some resources to acquire and release operations. The Spring 1.x provides two ways for the user to specify the life cycle callback method. <br /> a way that Spring provides two interfaces: the InitializingBean and DisposableBean. If you want to perform some custom action after the completion of the Bean initialization, you can to bean to achieve InitializingBean interface, the interface contains an afterPropertiesSet () method, the container after the Bean set the property will automatically call the method; Bean the interface DisposableBean, before the destruction of the bean, the container will call this interface the destroy () method. The disadvantage of this approach is that the bean class implements Spring interface, an increase of the degree of coupling of the code with the Spring Framework, and therefore not recommended. <br /> The second way is used in the XML file <bean> the init-method and destroy-method attribute specified initialization and destruction callback methods before, the code does not need to implement any interface. The values ??of these two properties is the initialization and destruction of the corresponding bean class, method name any, but the method must have no parameters. Examples are as follows: <bean id="userService" class="bookstore.service.UserService" init-method="init" destroy-method="destroy"> &#8230; </ bean> <br /> Spring 2.5 in retain the above two ways, based on JSR-250 support. JSR-250 specification defines two annotations to specify the method of statement cycle: _AT_ PostConstruct and @ PreDestroy,. These two annotations to use very simple, just were marked executed after the initialization callback method or destroyed prior to the implementation of callback methods. The use of annotations, so you need to configure beans post-processor, that is, add the following line in the XML: <context:annotation-config /> <br /> comparison of the three specified life cycle callback method way, is not recommended, not only of their usage as good as two flexible, and virtually increase the degree of coupling of the code framework. Behind are two ways developers can choose one according to usage, but it is best not to mix so as not to increase the difficulty of maintenance. @ Required bean dependence check <br /> to rely on examining the role, judgment to the corresponding set Bean Setter method are instantiated when called. Not judge whether the field has a value exists. Spring dependency checking, it will only determine if the property is used Setter Injection. If a property does not use Setter Injection, even if the constructor has been injected for the property value, Spring still think it does not perform the injection, which throws an exception. In addition, the Spring just whether performed by Setter injection, injected values, there is no requirement, even if the the injected <null/>, Spring also considered the implementation of dependency injection. <br /> the <bean> label dependency-check attribute for dependency checking. The values ??of the property include the following: none &#8211; the default does not perform a dependency check. The default-dependency-check attribute in <beans> on the label to change the default value. <br /> simple &#8211; check the original basic types and collection types. <br /> objects &#8211; complex type of check (in addition to other types of simple examined by type). <br /> an all &#8211; for all types of checks. <br /> old version of the dependency-check in the configuration file to set the disadvantage is that the coarse grain size. Provided by the Spring2.0 the @ Required annotation to provide a more fine-grained control. @ Required annotation can only be marked above Setter method. Because the nature of dependency injection is to check Setter method is called, not really to check whether the attribute assignment and assigned a value of. If the label of the annotation in the type of the non setXxxx () method are ignored. <br /> to let Spring handle the annotations, you need to activate the Bean post processor. To activate the post-processor, simply add the following line in the XML to. <context:annotation-config/> <br /> is called when a is marked @ Required Setter did not, then Spring will throw an exception when resolved to remind developers that the corresponding attribute settings. Use @ Resource, _AT_ Autowired and the the @ Qualifier to the specified Bean automated assembly strategy <br /> automatic assembly refers to the Spring when assembly Bean, according to the specified automatic assembly rules, a Bean need to reference type the Bean injected in. <bean> element provides a specified automatic assembly type autowire property, which have the following options: no &#8211; explicitly specify the use of automatic assembly. <br /> byName the the &#8211; if there is a consistent attribute name beans, use the bean to be injected. If the name matches the type mismatch, an exception is thrown. If you do not match the type, then do nothing. <br /> byType &#8211; if there is a current property type Bean (the same type or subtype), then use the bean to be injected. byType able to identify a factory method, that is able to identify the return type of the factory-method. If you have more than one type of bean, an exception is thrown. If you do not match the type, then do nothing. <br /> the constructor &#8211; and byType similar to, but it is in terms of the constructor injection. If no constructor parameter types that match the bean throws an exception. Use of the assembly mode, priority matching parameter constructor. <br /> autodetect &#8211; decided to adopt byType or the constructor for automatic assembly according to Bean introspection mechanism. Bean provides a default constructor, uses byType; otherwise using the constructor for automatic assembly. <br /> to use byType or constructor autowiring by type when automatic assembly also supports the array of reference types, or use a generic collection, so that the Spring will inspect the container matches the type of bean, composed of a collection or array to perform the injection. The use of a generic type Map, if the key is of type String, Spring will automatically perform the assembly, all types that match the bean as the value, the bean name as the key. <br /> We can to <beans> increase in the default-the autowire properties, set the default automatic packaging strategy. The default value is &#8220;no&#8221;. If the use of automatic assembly, but also specifies the property or constructor-arg tag explicitly specified value will override the value of the automatic assembly. Automatic package does not support the simple types, such as basic types, the String, Class, and their array type. <br /> match by type (which may byType, the constructor, autodetect), the same type may be more than one bean, if property is to be injected arrays, collections, or Map, this might not be But if simply a reference type, an exception is thrown. Solution are summarized as follows: the abolition of the automatic assembly properties of the Bean, the use of explicit injection. We may not want a Bean is as the candidates of other bean to perform automatic package, we can increase the <bean> the autowire-candidate = &#8220;false&#8221;. (The autowire-candidate attributes and the autowire attribute is independent and unrelated. A Bean can be the autowire-candidate is set to false, use autowire features.) In addition, we can set <beans> default-the autowire-candidates attribute, you can specified in this attribute can be used to match the mode of the automatic assembly candidate Bean, such as the default-the autowire-candidates = &#8220;* serv, * the dao&#8221;, which means that all the names as candidates for serv or dao end of Bean, while others ignore , which is equivalent to other beans are designated as <bean> the autowire-candidate = &#8220;false&#8221;, then you can explicitly specify the autowire-candidate = &#8220;true&#8221;. The set specified in <bean>, you want to overwrite the settings specified on the <beans>. <br /> If multiple types of beans preferred bean, then the <bean> primary attribute is set to &#8220;true&#8221;, so that the automatic assembly will give priority to use the bean to be assembled. Can not be the autowire-candidate set to false. <br /> If you are using Java 5 or later, you can use annotations to more fine-grained control. <br /> @ Autowired and the @ Qualifier annotation implementation of the automatic assembly <br /> use the @ Autowired annotation assembly can only be based on the type of match. _AT_ Autowired comment Setter method, constructor, field can be used, and even the ordinary method, provided that the method must have at least one parameter. The @ Autowired for the array and the use of generic collection types. Then injected into the Spring container will be all types of matching bean come. The The @ Autowired marked role in the type Map, the Map key of type String, Spring will be the Map the value corresponding to the type of all types of container the bean into consideration, as the Map key to use id or name of the Bean. <br /> @ Autowired, marked role in the ordinary way, it will produce a side effect, is to initialize the bean instance when the container calls the method. Of course, the implementation of the automatic assembly does not meet the conditions of the assembly, the method will not be executed. <br /> marked @ Autowired,, automatic injection can not meet an exception is thrown. We to @ Autowired, marked increase to a required = false attribute to change this behavior. In addition, each class can have only one constructor @ Autowired.required () property is true. Otherwise the problem. If use @ Autowired at the same time marked more than one constructor, then Spring will use the greedy algorithm to match the constructor (constructor maximum). <br /> @ Autowired,-there is one role is to be marked in the type BeanFactory, ApplicationContext type, a ResourceLoader type, ApplicationEventPublisher type, the MessageSource types, then Spring will automatically inject the implementation class instance, does not require additional action. <br /> When there are multiple Bean container types and injection at the same time, the injection can not be executed, we can to @ Autowired increase the value of a candidate, the practice to add a @ Qualifier the @ Autowired behind label a String value as the name of the candidate bean. The following are examples: the @ Autowired (required = false) @ Qualifier (&#8220;ppp&#8221;) public void setPerson (person Show-p) {} <br /> @ Qualifier can even act on the method parameter (for only one parameter , we can @ Qualifer label is placed above the method declaration, but recommended to be placed in front of the parameter), for example, as follows: @ Autowired (required = false) public void the sayHello (@ Qualifier (&#8220;ppp&#8221;) the Person p, String name) { } <br /> qualifier name, we can specify a bean in the configuration file as follows: <bean id="person" class="footmark.spring.Person">
<the qualifier value = "the ppp /> </ bean> <br /> If you do not explicitly specify the bean qualifier name, then the default name is the name of the bean. Typically, the qualifier should be the business meaning, for example, &#8220;domain&#8221;, and &#8220;a persistent&#8221;, and should not be similar to the &#8220;person&#8221; approach. <br /> @ Qualifier annotation on the collection type, then the qualifier the name the same as the specified value bean will be injected in. <br /> configuration file need to specify a custom annotation property values. We can use <meta> label to instead of <qualifier/> label if <meta> label and <qualifier/> of labels at the same time, then priority use <qualifier> label. If no <qualifier> label, then use <meta> key tags to encapsulate <qualifier>. Example as follows: the <bean class="footmark.HelloWorld"> <qualifier type="MovieQualifier"> </ the qualifier> </ bean> <bean class="footmark.HelloWorld"> <meta-key = "format" of value = "DVD "/> the <meta key="genre" value="Action"/> </ bean> <br /> annotation @ Autowired, the corresponding processing registration and similar to the front, only in the configuration file to increase the following line to: <context:annotation-config/> <br /> If injected @ Autowired, the system type of the BeanFactory, the ApplicationContext, a ResourceLoader, then you do not need the @ Qualifier at this time even the @ Qualifier annotation. bean will be ignored; for the automatic assembly of the custom type, use the @ Qualifier annotation and no name matching, automatic assembly fails to match. <br /> If you want automatic assembly performed by name, use the JSR-250 @ Resource and @ Qualifier annotation <br />, you should use the JSR-250 @ Resource annotation, rather than should use a combination of the @ Autowired with @ Qualifier. <br /> @ Resource use byName way to perform automated package. @ Resource annotation can Setter method with a parameter, the field, as well as the ordinary method with a parameter. @ Resource annotation has a name attribute that specifies the name of the corresponding bean in the configuration file. If you do not specify a name attribute, then the default value of the field or property name. With @ Resource and @ Qualifier is still valid, but the @ Qualifier @ Resource, almost equivalent to the name attribute. <br /> @ Resource does not specify a name attribute, then use byName after the match fails, fall back to use byType continue to match, if we fail, then throw exception. Not the @ Resource annotation to explicitly specify the name attribute of the premise, if the label in type BeanFactory and the ApplicationContext type, a ResourceLoader type, ApplicationEventPublisher types, the MessageSource types, then Spring will automatically inject the implementation class instance, no additional operation. The name attribute does not need to specify (or designated as &#8220;&#8221;), or injected into the failure; If you use the @ Qualifier, the annotation will be ignored. For the injection of user-defined type, the @ Qualifier and name equivalent, and will not be neglected. <br /> the <bean> the primary and the autowire-candidate attribute the _AT_ Resource, @ Autowired still valid. @ Configuration and @ Bean Bean statement <br /> since the release of version 2.0, Spring continue to provide 10 more comments, but these comments just to simplify in some cases the XML configuration. is not intended to replace the XML configuration. This can be seen from the Spring IoC container initialization class: the most commonly used implementation class of the ApplicationContext interface is ClassPathXmlApplicationContext and FileSystemXmlApplicationContext,, as well as for Portlet XmlPortletApplicationContext and web-oriented XmlWebApplicationContext, they are oriented XML. Spring 3.0 added the other two implementation classes: AnnotationConfigApplicationContext and AnnotationConfigWebApplicationContext. We can see from the name, they are born as a comment, directly dependent on the annotation to initialize the class as a container configuration information sources IoC container. AnnotationConfigWebApplicationContext is the web version of AnnotationConfigApplicationContext its use compared with the latter there is little difference, so this article will be AnnotationConfigApplicationContext example to explain. <br /> AnnotationConfigApplicationContext match on @ Configuration and @ Bean annotation, since the XML configuration is no longer the only configuration of the Spring IoC container. In a competitive relationship between a certain range of memory, but in most cases or collaborative relationship, the combination makes the configuration of the Spring IoC container is easier, more powerful. <br /> before configuration information to focus on writing in XML, now use annotations, the configuration information of the carrier by the XML file transferred to a Java class. We usually will be used to store configuration information in the class of the class to the &#8220;Config&#8221; at the end, such as AppDaoConfig.java, AppServiceConfig.java and so on. We need a class that is used to specify configuration information with the @ Configuration annotation, clear that the class is the source of the bean configuration information. Spring marked the Configuration class, the following requirements: Configuration class can not be final; <br /> configuration class can not be localized, that is not the definition of the configuration class inside a method in other classes; <br /> configuration class must have a no-argument constructor. <br /> AnnotationConfigApplicationContext configuration class annotated with @ Bean method return value is recognized as a Spring bean, and register to the container by the IoC container management. @ Bean role is equivalent to the <bean/> tag in the XML configuration. The following example: @ Configuration public class BookStoreDaoConfig {@ bean the public UserDao userDao () {return new UserDaoImpl ();} @ the Bean bookDao () {return new BookDaoImpl of the public BookDao ();}} <br /> Spring resolved to the above documents will identify all the methods marked @ bean, perform, and method return values ??(UserDaoImpl, and BookDaoImpl objects) registered to the IoC container. By default, the bean name is the name of the method. Therefore, the above configuration equivalent XML configuration is as follows: <bean id="userDao" class="bookstore.dao.UserDaoImpl"/> <bean id="bookDao" class="bookstore.dao.BookDaoImpl"/> <br /> @ Bean has the following four attributes: name &#8211; Specifies the name of one or more Bean. This is equivalent to the XML configuration <bean> name attribute. <br /> the initMethod &#8211; After initializing Bean container will call the method specified in the property. This is equivalent to the XML configuration <bean> init-method attribute. <br /> and destroyMethod makes &#8211; The properties and initMethod function similar to the attribute specifies the method is called before the container destroyed Bean. This is equivalent to the XML configuration <bean> destroy-method attribute. <br /> the autowire automatic assembly strategies &#8211; the specified Bean property value is a static property of the Autowire type three. Autowire.BY_NAME, Autowire.BY_TYPE, Autowire.NO. Autowire attribute values ??in the XML configuration, where the less the constructor, this is because the constructor has no meaning here. <br /> @ Bean did not directly specify the scope attribute to achieve the @ Scope and @ Scope usage listed above. <br /> The following explain the initialization of the container based on annotations. AnnotationConfigApplicationContext three constructor used to initialize the container. AnnotationConfigApplicationContext (): The constructor initializes an empty container, the container does not contain any bean information later by calling the the register () method to register the configuration class, and call refresh () method to refresh the container. <br /> AnnotationConfigApplicationContext (Class <?> &#8230; annotatedClasses): This is the most commonly used constructor, will involve the configuration of classes passed to the constructor to the corresponding configuration class of the Bean automatically registered into the container. <br /> AnnotationConfigApplicationContext (String. .. basePackages): The constructor will automatically scan a given package and its subpackages under class, and automatically identify all the Spring beans to be registered to the container in. Not only does it identify the annotation @ Configuration class configuration and resolved correctly, but also to identify the use of @ Repository, @ the Service @ the Controller, the _AT_ Component marked class. <br /> In addition to the above third type of constructor for the container automatically scans the bean configuration information, AnnotationConfigApplicationContext also provides scan () method, its function is also similar to the above, this method is mainly used in container initialize the dynamic increase in the Bean to the container. Call the method usually requires immediate manually call refresh () Refresh the container to let the changes take effect immediately. <br /> should be noted that, when AnnotationConfigApplicationContext in parsing the configuration class, the configuration of the class itself is registered as a bean, because the @ Configuration annotation itself defined by the @ Component annotations. Therefore we can say a @ Configuration @ the Component. In most cases, the developer less than the bean, and in the ideal case, the beans should be transparent to the developer. @ Configuration defined as follows: @ Target ({ElementType.TYPE}) @ Retention is (RetentionPolicy.RUNTIME) @ the Documented @ Component public @ the interface the Configuration {String of value () default &#8220;&#8221;;} <br /> in the general project, in order to clear structure, usually based on software modules or structure is defined multiple XML configuration file, and then define an entrance of the configuration file, the file <import/> configuration file organization. Finally just the file passed to ClassPathXmlApplicationContext constructor can. Annotation-based configuration, Spring also provides a similar function, simply define an entrance configuration class and @ Import annotation to the introduction of other configuration class can be used in such, the last class to pass the entrance to AnnotationConfigApplicationContext. Specific examples are as follows: @ the Configuration @ Import ({BookStoreServiceConfig.class, BookStoreDao Config.class}) public class BookStoreConfig {&#8230;} <br /> mix of XML and annotations to the bean configuration <br /> <br / design @ Configuration and @ Bean original intention is not to completely replace XML, but outside in the XML one more viable option. Spring since the since the release of the Spring development team will continue to simplify the XML configuration and XML configuration is already very mature, coupled with Spring 2.0 namespace support, making XML configuration as easy to use, powerful beans defined. Moreover, some of the advanced features of the XML configuration is not related annotations can directly support. Therefore, in the majority of the current project, or use pure XML configuration bean configuration, or use to annotation-based configuration, supplemented by an XML bean configuration. <br /> The reason for the coexistence of the two, mainly attributed to three reasons: First, the present, most of the Spring development projects, almost all based on XML configuration Spring introduction of annotations at the same time, must ensure that the annotations and XML harmonious coexistence, which is the prerequisite; Second, comment to the introduction of late, so the function is also no development for many years the power of XML for complex configuration, annotations also difficult to work independently. still need a period of time with the XML can solve the problem. In addition, the configuration of Spring beans with Spring core modules are decoupled and, therefore, change the configuration of the Spring framework itself is transparent. Spring can be very convenient for the annotation support through the use of the Bean processor (the BeanPostProcessor) This is a very easy thing in technology. <br /> want to use a mixed configuration, you first need to determine what kind of configuration-based. Different answers on this issue will directly affect the manner of implementation. However, no need for this headache, whether by way of XML-based, or to annotation-based configuration is simple and easy to understand. There is not a wrong decision, because the only expression is not the same. We first assume that based on XML configuration. <br /> large-scale projects already exist, may be early is an XML Bean configuration, follow-up gradually adding annotation support, then we need only in the XML configuration file will be marked by the @ Configuration classes defined as common the <bean>, and to register the processing annotated bean post processor. The following example: / / assume the existence of the following @ Configuration class: package bookstore.config; import bookstore.dao. *; @ The Configuration public the class MyConfig {@ bean the public UserDao userDao () {return new UserDaoImpl ();}} At this point, simply make the following declaration in XML can be: <beans…> &#8230; <context:annotation-config /> <bean class="demo.config.MyConfig"/> The </ beans> <br /> Bean after processor for the annotation is enabled, it resolves to the ApplicationContext MyConfig class, the class marked with the @ Configuration annotation, then it will deal with the class label @ Bean method, these methods return the value of registered total container bean. <br /> For more than one way, if there are multiple annotation @ Configuration class, you need to list them in an XML file. Another way is using the aforementioned auto-scan function, the following configuration: <context:component-scan base-package="bookstore.config" /> <br /> so Spring will scan all of the demo. class in the config package and its subpackages, to identify all marked with @ Component, @ the Controller, @ Service, @ Repository annotation class, the @ Configuration annotation itself is marked using @ Component, Spring will be able to identify the @ Configuration annotation class and correct parsing of the. <br /> annotated configuration, simply use the @ ImportResource annotation introduction of the XML can exist, the @ Configuration @ ImportResource is as follows: (the &#8220;the classpath :/ the bookstore / config / spring-beans xml &#8220;) public class MyConfig {&#8230;} / / initialization process of the container and pure configuration for the center in a manner consistent the: AnnotationConfigApplicationContext ctx = <br /> the new AnnotationConfigApplicationContext (MyConfig.class); this article from: http://www.ibm.com/developerworks/cn/opensource/os -cn-spring-iocannt/index.html? ca = drs-cn-0506 </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/712/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The company recruitment</title>
		<link>http://www.5alin.com/archives/711</link>
		<comments>http://www.5alin.com/archives/711#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:28:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ashleyfurniture]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[June 3, 2011 <br /> my colleagues <br /> Below. Ar]]></description>
			<content:encoded><![CDATA[<p>June 3, 2011 <br /> my colleagues <br /> Below. Are the vacancies in our company recently, please kindly the find detailed-info as you need ~ if you have any enquires / recommendation, please feel of free to at contact me! <br /> The following are the current vacancies jobs, if you have any suitable candidates to recommend, welcome to communicate information to me ~ If you have any doubts, please consult me! My contact information listed below, welcome the recommendation! the <br the /> <strong> </ strong> the <br the /> <strong> </ strong> <br /> <strong> # </ strong> <strong> </ strong> <br /> <strong> the Position < / strong> <strong> post </ strong> <strong> </ strong> <br the /> <strong> Number </ strong> The <strong>, the number of </ strong> <strong> </ strong> <br /> < strong> Location </ strong> <strong> </ strong> <br the /> <strong> Location </ strong> <strong> </ strong> <br the /> <strong> the Requirements </ strong> <strong> requirements < / strong> <strong> </ strong> <br /> <strong> 1 </ strong> <strong> </ strong> <br /> <strong> the Product Development the Sample Coordinator </ strong> <strong> furniture sample development Coordinator </ strong> <strong> </ strong> <br /> <strong> 2 </ strong> <strong> </ strong> <br /> <strong> Chengdu </ strong> <strong> </ strong > <br /> 1 At least 2-3 years work experience in furniture company, working at production line / R </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/711/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SRGAVC0301 encoder-ALPS encoder suppliers -18,923,485,199 Zhang</title>
		<link>http://www.5alin.com/archives/710</link>
		<comments>http://www.5alin.com/archives/710#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:27:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ashleyfurniture]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[July 2, 2010 <br /> industry Pradesh Industrial Co]]></description>
			<content:encoded><![CDATA[<p>July 2, 2010 <br /> industry Pradesh Industrial Co., Ltd. &#8211; sales agent a full range of ALPS switch, ALPS encoder, ALPS potentiometer, the ALPS deck, ALPS sensors. The products are widely used in automotive electronics (Car DVD, GPS, vehicle anti-theft device, etc.), audio-visual products (such as audio, amplifier, mixer), digital products, mobile phones and other communications products, medical equipment and various types of instrumentation. <br /> <strong> industry Bang Industrial Co., Ltd. <br /> </ strong> <strong> Contact: Mr. Zhang 18,923,485,199 <br /> </ strong> <strong> Tel :0755-26567300 Fax :0755-26576355 <br /> </ strong> <strong> E-mail: Sales09@yepong.com </ strong> Other: <br /> <br / >-ALPS encoders supplier -18,923,485,199 Zhang <br />-the ALPS encoder supplier -18,923,485,199 the <br /> SPVQ340400 switch button-ALPS encoder supplier -18,923,485,199, <br / > <br />-ALPS encoder suppliers -18923485199 -18923485199 Zhang <br /> <br the /> EC11J0920601 encoder-the ALPS encoder supplier <br />, SRGAVC0301, encoder <br /> Address: 1111 Blue Lake County, northern New Area Kim open road &#8211; Blues Day Street SA-1 <br /> Chongqing A Shilai Furniture Co., Ltd. Tel: 67,888,889 <br /> <br / > Ashley Furniture Company in southwest China business agency: <br /> Ashley furniture from around the world carefully buy expensive, high-quality native wood, so that product quality has always been a world leader; in the production process: world-class high-tech production line and the old hand-carved art, to keep the way of native wood and natural form, products, fine workmanship, exquisite workmanship; development, the use of high-tech biological wax products finish, corrosion, decay, extend product the useful life of many ways to produce a magical effect; artistic style: long European and American culture and the arts; royal grandeur; beautiful idyllic &#8230; blend. Ashley Furniture will never penetrate: simple, natural, peaceful European and American pastoral charm, beautiful, warm breath of life; show: luxury, elegance, classic, luxury style. <br /> <br the /> www.ashleyfurniture.com <br /> by Ashley Furniture U.S. Headquarters: Wisconsin 阿卡狄亚阿 Shilai Avenue <br /> by Ashley Furniture Company for each patrons: freedom of choice, combined; products directly from the company headquarters, EC11B2024304 encoders; responsible for the delivery; provide furniture installation, design and decoration advice and after-sales quality service and a wide range of services such as content. Never performed the &#8220;Total Customer Satisfaction&#8221; promise. <br /> Ashley Furniture Company global headquarters in Arcadia, Wisconsin, USA. Founded in 1945, initially unknown company, one only has 3500 ft2 site SPVS410100 switch button. 60 years, the company firmly adheres to the implementation of a &#8220;complete customer satisfaction; to produce the world best products, SPVQ311500, switch button; become the world best companies,&#8221; the belief, hard work, now has six production bases. factory area of ??more than 300 million square feet, has become the world furniture production, sales center, SPVQ371000 switch button; is the world third largest furniture manufacturing company. <br /> <img src = "http://b.bst.126.net/style/common/tuijian.png" onClick = "window.open ( ttp://b.bst.126 .net / style / common / tuijian.png "onerror =" this.src = http://cache.soso.com/img/blog/p1.gif quot;onload =" addjustimg (this) "TYPE = "audio / mpeg"> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/710/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dewaxedshellac plastic wax shellac</title>
		<link>http://www.5alin.com/archives/709</link>
		<comments>http://www.5alin.com/archives/709#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:27:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[rattanfurniture]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[October 15, 2011 <br /> (a) household types <br />]]></description>
			<content:encoded><![CDATA[<p>October 15, 2011 <br /> (a) household types <br /> Adjustablebed adjustable bed <br /> the Airbed Qichuang <br /> Anti-slipstripforstairs (crib) non-slip stairs against the handrails <br /> <br the /> Antiquefurniture ancient furniture <br /> Antiquereproductionfurniture antique furniture <br /> of Armchair Armchair <br /> < br /> B <br /> Babycrib crib <br /> Backlesswall-unit is not to set the backplane closet <br /> Bamboofurniture bamboo furniture <br /> <br / > Banquetingchair banquet chairs <br /> Barstool chairs <br /> the the <br the /> Bathroomaccessories bathrooms supporting device <br /> <br the /> Bathroomcombination bathroom cabinet <br /> Bathroomconsoles bathroom multi-purpose frame. <br /> Bathroomfurniture bathroom furniture <br /> Bathroomvanity bathroom vanity <br /> <br the /> Battendoor lath door <br /> <br the /> Bedbase bedstead, bed sets <br /> Bedbaseset complete sets of bed frame <br /> <br the /> Bedroomsuite bedroom family furniture <br /> the Bedstead bedstead <br /> Bentwoodfurniture bentwood furniture <br / <br /> Besidetable bedside cabinet <br /> Birchdoor birch doors <br /> Board-roomandconferencetable conference table <br /> Bookcase Bookcase <br /> the Bookshelf bookshelves <br /> Built-inkitchen matching kitchen furniture <br /> Bunk bunk beds <br /> Bunkbed Bunk beds <br /> C <br /> Cabinbed children with multi-functional bed <br /> Cabinfurnitureforships marine furniture <br /> Canopybed with canopy beds, four poster beds <br /> CD- side videostoragecabinet audio cabinet <br /> the <br the /> Chairwithcastors foot wheelchair <br /> Changingtable adjustable tables <br /> Chestofdrawers multi-drawer cabinets <br /> Childcot Tong Bed <br /> the <br the /> Children bed children bed <br /> <br the /> Children bedroomsuite children bedroom furniture series <br /> <br the /> Children chair children chair <br /> CKD (completeknockdown) overall removable furniture <br /> Clothesrail clothes rail <br /> Cocktailcabinet bar cabinet, wine cabinet <br /> <br the /> Cocktailtable cocktail table <br /> Coffeetable coffee table, coffee table <br /> the Combine-unit cabinet <br /> composite Compositefurniture furniture <br /> Console table near <br /> Consoletable (mounted on the wall) volute legs table <br /> Contractfurniture made the furniture, buy furniture online, the construction of furniture <br /> Contractprogrammes made furniture <br /> Cornersofasuite corner handrail <br /> Cot crib (cot) <br /> Couch, couch, <br /> Cupboard cabinets <br /> < br /> Cupboardwallunitforflat suite wardrobe <br /> Curtain, curtains, curtain <br /> Customizedfurniture made furniture <br /> D <br /> Decorativelighting decorative lamps <br /> Diningroomfurniture restaurant furniture <br /> supporting Diningroomset living room furniture <br /> Diningtable table <br /> Divan couch, sofa bed < br /> <br /> Dividingwallandfittedwallunit wall panels and a series of <br /> DIYfurniture mounted furniture <br /> Double-bed double bed <br /> Doublefunctionsofa-bed double sofa bed <br /> Doublesidedmirror two-way mirror <br /> <br the /> Draughtsmanchair bar chair <br /> Drawer drawer <br /> Dressingtable dresser <br / <br /> E <br /> Easychair lightweight chair <br /> Endtable coffee table <br /> the <br the /> Entrancehallfurniture hall furniture <br /> Exteriordoor outdoor door < br /> <br /> F <br /> Filingcabinet file cabinet <br /> Fireplace fireplace <br /> the Fitment fixed furniture <br /> of Fitting Home Supplies <br /> Flap turned to the door <br /> <br the /> Flowerstand flower <br /> <br the /> Flushdoor plane door and for the entire board door <br /> <br the /> Foldingchair folding chair <br /> Foldingfurniture folding furniture <br /> Folkfurniture folk furniture <br /> Foot-stool step footstool <br /> Framedmirror with box mirror <br /> French-typefurniture mode The furniture <br /> Frenchcabinet French furniture curved feet <br /> the <br the /> Frenchdoor glass door <br /> Functionsofa multifunctional sofa <br / > <br /> Furnitureforbedrooms bedroom furniture <br /> Furnitureforpublicpremises public places furniture <br /> G <br /> Gametable toy table <br /> Gate- legtable folding table <br /> <br the /> Glasscabinet glass display cabinet <br /> <br the /> Glasscase glass furnishings cabinet <br /> Glassunitandcontainer glass container products <br /> the <br the /> Glazeddoor glass door <br /> H-<br /> <br the /> Hallfurniture rooms. furniture <br /> Hatandcoatstand coat rack <br /> Headboard bed <br /> <br / > Heirloomqualityfurniture ancestral furniture <br /> foot bed Highbed children (without drawer cabinets) <br /> the Highchair high chairs <br /> Highbackexecutivechair high back office chair <br /> the <br the /> Homefurniture family furniture, furniture <br /> <br the /> Homeofficefurniture home office furniture <br /> <br the /> Hotelfurniture hotel furniture <br /> Householdfurniture home furniture <br /> , Hutch in a bowl of </p>
<p> Institutionalfurniture custom furniture, public furniture <br /> J <br /> Juniordeskchair students desks chair <br /> K <br /> Kitchenblock / kitchenrock kitchen floor tiles <br /> Kitchencabinet sideboard <br /> Kitchenchair, stoolandbench kitchen chairs, stools and chair <br /> Kitchenfitment fixed kitchen furniture <br /> <br the /> Kitchentable kitchen table <br /> Kitchenunit kitchen sets, furniture <br /> L <br / <br /> Lamptable lamp tables <br /> Lathgrid lath grid <br /> Ledgeddoor the candybar door <br /> Linkchair the WordPad chair <br /> Livingroomfurniture <br />, living room furniture Locker, locker <br /> Loungefurniture living room furniture <br /> Louvereddoor shutters doors <br /> Lowbackexecutivechair low back office chair <br /> back the <br the /> Lowbackguestchair low-back guest chair <br /> Lowbackvisitorchair low back visitor chair <br /> M <br /> Managerialmediumbackchair manager chair <br /> the <br the /> Marginedflushdoor trim flat-panel door <br /> Mattress in the mattress, Simmons <br /> Mediumbackexecutivechair back office chair <br /> Metalfurniture metal furniture <br /> <br the /> Mirrordoor glass doors <br /> <br the /> Mirrorforchestofdrawers multi-drawer cabinets vanity mirror <br /> Multi-purposesofa multi-sofa <br /> Multi- purposetable multi-purpose table <br /> N <br /> Nest coffee table <br /> O <br /> Occasionalfurniture matching furniture, leisure furniture <br /> < br /> Occasionaltable leisure table <br /> Officefurniture office furniture <br /> Officeseating office seat. <br /> Officetable desk <br /> P < br /> <br /> Partitionwall, cut off <br /> Pembroketable fold topped table <br /> Planterschair gardener chair <br /> Plasticfurniture plastic furniture <br /> < br /> Playfurniture entertainment furniture <br /> Presidentialhighbackchair high back office chair <br /> Pull-outtable telescopic tableware <br /> R <br /> Rattanfurniture <br />, rattan furniture, Recliner recliner <br /> Refectorytable long table <br /> Rockingchair rocking chair <br /> Rotarychair swivel <br /> Rusticstylefurniture the country style furniture <br /> <br the /> rectangulartable long table <br /> red-lacqueredchest red wood box <br /> the <br the /> roundbed round bed <br /> <br / the> roundstool stool <br /> roundtable roundtable <br /> round the-backedarmchair armchair <br /> S <br /> Schooltable desk <br /> screen screen <br /> Seat, seat <br /> secretaire desk (especially the drawers and classification grid) <br /> <br the /> Secretarialchair Secretary Chair < br /> <br /> sectionalsofa put together the sofa <br /> semi-of CKD dismantling furniture <br /> <br the /> separatewinecabinet independent cabinet <br /> servingtable send the table <br /> settee; chaiselongue settee <br /> shelvingcombination combination frame <br /> the <br the /> shoerack Xiejia <br /> sidetable small table <br /> < br /> sideboard sideboard <br /> simmousbed the Simmons <br /> singlebed single beds <br /> slatstool board bench <br /> sleepersofa to sleep on the sofa <br /> sofa sofa <br /> sofabed sofa bed <br /> sofatable sofa table <br /> <br the /> softchair ottoman <br /> springbed; steelcot spring bed; spring bed <br /> spring-seatchair spring seat <br /> the <br the /> squarestool Fangdeng <br /> squaretable square table <br / <br the /> steelchair armchair <br /> steeldesk steel desk <br /> steelsafe safe <br /> stepstool ladder stool <br /> stool stool; put footstool <br /> <br the /> storageforumbrellas umbrella frame <br /> <br the /> straightbackchair straight back chairs <br /> strongbox; <br /> studiocouch the the safe safe single sofa bed <br /> suitcase; the trunk the trunk; small suitcase <br /> swivelarmchair canvas deck chairs <br /> swivel-topstool The rotating stool <br /> (b) furniture style <br /> A &#8212;- <br /> <br the /> agenerationofchairs office chair Improved <br /> aprovenprogram an implementation. The project <br /> arelaxedpostureineveryseatingposition adapt to various posture, furniture, people feel more comfortable <br /> aestheticdesign aesthetic design <br /> allowanambiencetobeharmoniouslycreated the create a harmonious and warm atmosphere beautiful <br /> <br the /> appealingdesign shape <br /> artisancraftsmanship craftsmanship <br /> B &#8212;- <br /> Barocostyle Baroque style <br / <br /> C &#8212;- <br /> Colonialplantationfurniture colonial plantation furniture <br /> Contemporarydesign modern style. <br /> Copy to copy, imitation, counterfeit < br /> <br /> D &#8212;- <br /> the <br the /> Designstudio design firm <br /> Designtrend design trends <br /> Designer designer <br /> Distinctgrainpattern clear wood grain pattern <br /> &#8212;- <br /> Economical, versatileandefficient affordable, multi-purpose, high efficiency <br /> Emphasizethemagnificentfeaturesoftherange express a more convenient and comfortable luxurious atmosphere <br /> Energyandcomfort <br /> Essential functionaldesign basic functions <br /> EthnicAfricanstyle African ethnic style <br /> <br / ---- <br /> Focusontheessential focus on the nature of <br /> of Freelance freelance <br /> Functional, ergonomic, long-lasting full-featured, ergonomic, durable <br /> Functionality, qualityandappealingdesign function, excellent quality, fabric sofa,, <br the /> Graphicdesign picture, good shape <br /> G &#8212;- <br /> (binding) design <br /> H &#8212;- <br /> Highquality quality <br /> &#8212;- <br /> Idealcombinationbetween both perfect The combination of <br /> Imitate imitate <br /> InaItalianwalnutfinish Italian walnut effect <br /> of Innovative innovative <br /> Intelligentdesign rational design <br /> Interiordecorator indoor artist <br /> Interiordesign <br the /> Interiordesigner indoor decorator, interior design </p>
<p> Italianstyle Italian style <br /> L &#8212;- <br /> <br the /> Lightcolor light-colored, pale <br /> M &#8212; <br /> Marbledeffect marble effect <br /> <br / > Meetthestandardsofallareasofthemodernworldofwork meet modern office requirements <br /> MingDynasty Ming Dynasty <br /> N &#8212;- <br /> Naturalfeelingofwarmthandtexture texture of warm natural <br /> neo-classical style <br /> in Neoclassicstyle <br /> P &#8212;- <br /> Perfectinshapeandfunction shape of a beautiful, fully functional <br /> <br the /> Productimagedevelopment product image promotion <br /> Productindustrialization the products of industrialization (design) <br /> Q &#8212;- <br /> QingDynasty Qing Dynasty <br /> R &#8212;- <br /> the Rectangular Rectangular <br /> Rococostyle Rococo style <br /> T &#8212;- <br /> Terra the-cottagranulatedpaintfinish Tao gravel paint effects <br /> < br /> Thestrengthofthecompany focus <br /> Traditionaldesign traditional style <br /> W &#8212;- <br /> Withaclassictrend with classical style <br /> < br /> Withtheexperienceofspecialist expert design <br /> Withoutcompromise exhaustive <br /> (c) paint coating vocabulary <br /> A &#8212;- <br /> < br /> Accelerate Accelerator hardener promoting agent </p>
<p> in contact with agents Aceticacid acetate <br /> Acetone Acetone <br /> Achromaticcolor no color <br /> Acidstain acrylic resin <br /> Acrylic, acrylic <br /> Acrylicsacidresin acrylic resin (class) <br /> AcrylonitrilebutadienestyreneresinABS resin, Acrylonitrile &#8211; butadiene &#8211; styrene resin <br /> <br the /> Activeagent active agent <br /> additive additive <br /> Additivemixture additive color mixing <br /> <br / the Adhesive Adhesive <br /> Adhesivesolvent rubber (material) solvent <br /> Adjacentcolor similar color <br /> Advancingcolor into the excellent <br /> Aerosolspraying simple spray <br /> Afterimage afterimage <br /> <br the /> Airdrying dry at room temperature <br /> Airlessspraying airless spray <br /> <br the /> Alcoholstain alcohol colorants the <br the /> Alertcolor warning color <br /> Alkydresin alkyd <br /> Alligatoring film cracking. <br /> Amountofspread the amount of adhesive <br /> <br / > anti-rust paint Anticorrosivepaint <br /> Antifoulingpaint antifouling paint <br /> Antiquefinish antique paint <br /> Automaticspraying automatic spraying <br /> B &#8211; - <br /> <br the /> Bakingfinish paint spray <br /> Baseboat primer <br /> Blistering vesicles <br /> Blushing albino <br /> Bodyvarnish polished the paint <br /> Brilliant, bright <br /> Brushing Brush <br /> Brushingmark / streak brush marks <br /> <br / > bubbling the bubble <br /> Buttonlac refined shellac <br /> C &#8212;- <br /> the Caf □ brown <br /> Carbamideresinadhesive, urea resin plastic <br /> Catalyst catalyst, catalyst contact agent <br /> Chalking Chalking <br /> Cherry Cherry <br /> word Chipping peeling. <br /> Chromaticcolor, a color <br /> Chromaticity Chromaticity <br /> Chromaticitycoordinates chromaticity coordinates <br /> Chromaticitydiagram chroma circle <br /> the Clssing up painting <br /> Clearcoating transparent coating <br /> Clearlacquer transparent paint <br /> Clearpaint transparent coating <br /> Coarseparticle coarse <br /> Coating. paint <br /> Cobwebbing cracks <br /> Cocos cocoa color <br /> Coldwaterpaint waterborne coatings <br /> The Colorblindness color blindness <br /> <br the /> Colorconditioning color adjustment <br /> <br the /> Colorharmony color to reconcile <br /> <br the /> Colorinoil tablets kinds of special (color) <br /> Colormatching color <br /> Colornumber color (color number or code) <br /> Colorpaint colored, paint <br /> <br the /> Colorreaction significant color reaction <br /> <br / > Colorreproduction color reproducibility allow poor <br /> Compatibility Compatibility <br /> Complimentarycolor complementary color <br /> Consistency thick thickness <br /> <br the /> Colortolerance color <br /> Contractivecolor contraction color <br /> the <br the /> Colcolor cold color, cool <br /> <br the /> Coolingagent coolant <br /> Coveringpower covering the force <br /> < br /> Cracking cracking Cresolresinadhesive cresol resin <br /> Crimping wrinkles, cracks </p>
<p> Cure is hardening <br /> Curingagent, hardener <br /> the <br the /> Curingtemperature curing temperature <br /> D &#8212;- <br /> Dark dark <br /> Deep deep <br /> the Degumming unglued <br /> <br the /> Dewaxedshellac plastic wax shellac <br /> the Diluent thinner, diluting agent <br /> <br the /> Dilutionratio dilution ratio of <br /> Dingy muddy color <br /> Dipping impregnated coating <br /> Dippingtreatment color <br /> Discoloring color <br /> Discord incongruous color < br /> the Drier desiccant </p>
<p> Dryrubbing dry grinding <br /> Dryingtime drying time <br /> Dulling loss of light <br /> <br / Dusting powder <br /> E &#8212;- <br /> Egg-shell Zhi Kong Yaguang Hin Kong Yaguang <br /> electrostaticspraying electrostatic painting <br /> < br /> emulsionadhesive the emulsification plastic <br /> emulsionpaint emulsion paint <br /> enamel paint, enamel <br /> end-coating seal coating <br /> <br / end-gluing face glued <br /> epoxyfinish Epoxy effect <br /> epoxyresinglue epoxy glue <br /> <br the /> ethylcelluloselacquer ethyl cellulose paint <br /> F &#8212;- <br /> Fading fading <br /> Filler Putty, Zhi materials, fillers <br /> Finishcode paint number <br /> Flatness Finshing finishing </p>
<p> Flaking peeling <br /> Flatpaint extinction coating <br /> extinction <br /> Floorpaint floor coating <br /> <br the /> Foamglue bubble gum <br /> G &#8212;- <br /> gelatin gelatin, furniture online store, gel <br /> glare Glare <br /> Glue, adhesive, glue, rubber </p>
<p> of Glueandfillerbond animal glue and filler cement <br the /> Gluemixer tune glue <br /> Gluespreader Gum, gum, gum <br /> H &#8212;- <br /> Hardener hardener <br /> the Hide leather, gluing machine </p>
<p> Highsolidlacquer high solids paint, glue <br /> <br the /> Honeycolor honey color <br /> &#8212;- <br /> <br the /> Illuminantcolor light color < br /> <br /> J &#8212;- <br /> the <br the /> Jellystrength glial strength <br /> <br the /> Jointstrength plastic bonding strength <br /> L, &#8212;- < br /> <br /> Lac shellac <br /> Lacvarnish varnish <br /> Lacquer paint <br /> of Latex latex <br /> Latexpaint The synthetic resin emulsion paint <br /> Levelingagent of the agents <br /> Light bright <br /> <br the /> Liquidglue liquid glue <br /> Longoilvarnish long sexual the varnishes <br /> Loveformaldehyde low formaldehyde <br /> M &#8212;- <br /> Makeuppaint mixed paint <br /> Mediumoilvarnish Petroleum degrees varnish < br /> <br /> Melamineresinadhesive trimeric chloramine resin, melamine resin plastic <br /> <br the /> Melamineresinsheet trimer the chloramine resin (tablets) <br /> Methylalcohol formaldehyde <br /> the Multi-color colorful paint <br /> N &#8212;- <br /> <br the /> Naturalclearlacquer varnish <br /> N.Clacquer nitrocellulose paint <br /> N.Clacquerenamel, nitrate color cotton paint <br /> <br the /> N.Clacquersealer nitrocotton-primer <br /> <br the /> N.Clacquersurfacer tip of cotton coated the entire surface of the coating <br /> Nitro-celluloselacquer nitrocellulose lacquer, nitro-beech <br /> the Nitro-lacquer Nitrocellulose Liquor <br /> Nitrocelluloselacquer nitrocellulose (spray) paint <br /> <br / > Nontoxixfinishes non-toxic paint <br /> Novolac (linear) novolac <br /> O &#8212;- <br /> off-color discoloration, fading, Non-standard colors <br /> <br the /> Oilpaint oil paint <br /> oil Oilputty the putty <br /> Oilsolvent oil solvent <br /> Oilstain oil colorant < br /> <br /> Oilstaining oil coloring <br /> Oilstone Whetstone <br /> Oilvarnish oil-based varnish, varnish <br /> Opacity opacity <br /> < br /> Opaquepaint opaque paint <br /> P &#8212;- <br /> the Paint paint paint <br /> Paintfilm coating <br /> paint nozzle <br /> Paintnozzle <br /> Penetrant penetrants <br /> Phenolaldehyderesin phenolic resin <br /> Polishingvarish rub the light (light) varnish <br /> PolyUrethaneResin polyurethane (PU) <br /> Polyester polyester <br /> Polyesterresinlacquer polyester resin coating <br /> Polypropylene Polypropylene <br /> Polystyrene polystyrene Polyurethane polyurethane, ethylene </p>
<p> Polyvinylacetateadhesive polyvinyl acetate glue (resin) <br /> <br the /> Polyvinyladhesive polyethylene resin <br /> Polyvinylchlorideresin poly vinyl coating <br /> Pre-coating pre-coated <br /> <br the the /> Procuring Precuring <br /> Preservative preservatives <br /> Primer is primer (the coated paint) <br /> Putty putty <br /> Pyroxylinlacquer nitrolacquer <br /> Q &#8212;- <br /> Quickdryingpaint speed The Dry Lacquer <br /> R &#8212;- <br /> Readymixedpaint reconcile paint <br /> <br the /> Refinedshellac refined shellac <br /> <br the /> Resinadhesive resin glue < br /> <br /> Reversecoater, reverse coating device <br /> the <br the /> Rollerbrush roller <br /> S &#8212;- <br /> <br the /> Sampleboard model <br /> Sandblast Sandblasting <br,, /> <br /> (d) wood furniture vocabulary <br /> A &#8212;- <br /> Abele Populus <br /> < br /> Abnormalwood abnormal sound board (wood) material <br /> Acousticacidboard sound-absorbing fiberboard <br /> Acousticalboard suck (repeat) <br /> Adjustabletemplate adjustable model <br /> Adultwood adult material <br /> Africanblackwood African Blackwood Dalbergia <br /> Africanebony African ebony <br /> Africanmabogany senegalensis <br / > Africa <br /> Africanpadauk sandalwood <br /> Aging. aging, the aging <br /> Airdrying atmosphere dry <br /> Airseasoning natural drying <br /> <br / > Alaskafir Alaska fir <br /> Alaskayellowcedar Alaska cedar <br /> Alder, Alnus class <br /> Americanash ash <br /> Americanbeech U.S. the beech <br /> Americaneim U.S., elm, Ulmus pumila <br /> Americanplane U.S., sycamore <br /> Americantulipwood U.S. Liriodendron <br /> Annualring ring <br /> the Apron Wangban <br /> Armor-plywood metal panels <br /> Arris, edge <br /> Artificialslabs wood-based panels <br /> <br the /> Artificialtimber artificial wood <br /> Ash ash <br /> Aspen Poplar class <br /> B &#8212;- <br /> Babool acacia trees <br /> Back backplane <br /> the Backboard backplane <br /> Backveneer liner <br /> Baldcypress Taxodium <br /> the Bamboo bamboo <br /> Basswood Basswood, American basswood <br /> Battenboard board heart Blockboard <br /> the Beech Beech <br /> Beechparquet, beech parquet <br /> Bentwood (curved) bentwood <br /> Birch, White Birch, <br /> <br the /> Birdseyemaple bird eye maple panels <br /> Block plug angle <br /> Blockfloor parquet <br /> Blockboard fretwork wood <br /> Board plates <br /> Bottom backplane <br /> Bowing along curved <br /> the the Branchwood branches material <br /> Brazilianmahogany Brazilian mahogany <br /> Brightsap net surface sapwood, the skinless sapwood <br /> Broadleafwood hardwood <br /> Brownash U.S. dark ash <br /> of hardwood the Burl tree scars, burl <br /> C &#8212;- <br /> Caul plate, lining <br /> Cedar cedar, Friends of furniture sofa, fir <br / > <br the /> Ceylonebony ebony <br /> Cherry Cherry <br /> Chilepine Chi Lisson <br /> Chinesechi (China) sumac <br /> Chip sawdust <br /> # 1common,-Pu a <br /> # 2common general two <br /> <br the /> compreg glue. compression wood <br /> compressedwood compression conifers, wood <br /> coniferousspecies <br /> <br the /> continuouslayerboard multilayer <br /> cork cork <br /> cottonwood cottonwood, poplar ( Populus tomentosa class) crotch Ah right <br /> crook bent wood <br /> the crossrail pull files </p>
<p> cupping Alice bend <br /> curlybirch wrinkles birch board <br /> curvedlaminatedwood bending, laminated timber <br /> curvedplywood curved plywood <br /> cypress conifer <br /> < br /> D &#8212;- <br /> Dado dado, dado <br /> Damproompanel moisture paneling <br /> Decay early rot <br /> < br /> Deciduousspecies broadleaf <br /> D □ corpanel paneling, decorative plate <br /> <br the /> Deltawood multi-layer wood <br /> Densifiedwood strengthen wood <br /> < br /> Densityofwood wood density <br /> Dent, bite the head <br /> Depthofcut cutting the amount (depth) <br /> Diffuseporouswood scattered the porous wood, <br /> <br / the Dimension specifications <br /> Dimensionstock specification material <br /> Dimpledjohar corrugated <br /> the Doorframe wings wood <br /> Doorlining doorframe <br /> < br /> Dovetail door liner <br /> Dowel dovetail <br /> Drawerfront round tenon <br /> Drawerside drawer next to the board <br /> Dressedtimber net material <br /> E &#8212;- <br /> Easterncottonwood (U.S.) Eastern Poplar <br /> Easternhemlock (Canada) hemlock <br /> Easternlarch larch <br /> Easternwhitepine (United States) white pine <br /> the Ebony ebony <br /> Edgecutting Edge <br /> the Elm Elm <br /> Elmburl thin elm burl wood <br /> Endcutting truncated <br /> Englishplane the English Platanaceae <br /> of Eucalyptus eucalyptus, eucalyptus (class) <br /> Eucalyptuspom lemon the metal eucalyptus wood <br /> Europecherry European cherry board <br /> Eropeanash European ash <br /> European birch <br /> Europeanbeech <br /> Europeanbirch European birch <br /> Europeanchestnut European chestnut <br /> Europeanhop-hornbeam European ears elm <br /> <br the /> Europeanhorse-chestnut European Buckeyes <br /> Europeanlarch European larch <br /> Europeanlime European basswood <br /> Europeanspruce European spruce <br /> Europeanyew Europe yew <br /> Excelsior-board wood wool board <br /> the Exotics foreign wood <br /> Exteriorplywood outdoor plywood <br /> F &#8211; - <br /> Faceveneer surface veneer <br /> of FAS one and two <br /> FAX1F sided one <br /> Fibreboard the fiberboard <br /> the Fiddleback violin back (board) <br /> <br the /> Fiddlebutt instrument material <br /> Figured Shadow Wood <br /> Figuredsycomore Indus shadow wood < br /> <br the /> Finewoodboard fiberboard <br /> Flakeboard particle board <br /> Flakes flake shavings <br /> Flame, retardantfibrebuildingboard refractory fiberboard <br /> < br /> flat-grainlumber Ping cutting pattern sheet <br /> Flooring floor <br /> Flushpanel (light) paneling <br /> Formedplywood molded, (molding) plywood < br /> <br /> Framecoreflushpanel hollow plywood <br /> Fromsustainableforests from sustainable forests <br /> Furnituredimensionstock Furniture Lumber <br /> Furnitureplywood furniture plywood < br /> the <br the /> Furnitureveneer production furniture flakes <br /> G &#8212;- <br /> Gap <br /> <br the /> Giantcedar (USA), side away from the seam the Bo <br /> Gloss gloss <br /> Grade Level <br /> Gradeoflumber lumber grades <br /> raded graded <br /> <br Hackberry Hackberry /> Grain, texture <br /> H &#8212;- </p>
<p> the <br the /> Bandselected manual selection <br /> Hardboard rigid fiberboard <br /> the <br the /> Hardmaple hard maple, mechanical tree <br /> Hardycatapa (United States) catalpa <br /> <br the /> Heatboard heart board <br /> Hickory, Mountain The walnut <br /> High-densityplywood, compressed plywood, high-density plywood <br /> Highgloss super gloss <br /> Highmoistureresistant (HMR) high strength anti-wet <br / > <br /> Hipboard Blockboard <br /> Holedrilling drill <br /> heart Honey the-combcoreplywood cellular, plywood <br /> Huanghauliwood yellow rosewood <br /> I &#8212;- <br /> Identificationoftimbers timber identification <br /> Imitationwood imitation wood <br /> Importedtimber imported materials <br /> Impregnatedwood ( synthetic resin) impregnated wood <br /> Indiancamphor India camphor <br /> Indianchestnut India chestnut <br /> Indiancinnamon India cinnamon <br /> Indianebony India, ebony <br /> Indian laurel &#8220;India&#8221; laurel &#8220;<br /> Insectattack insect eyes <br /> Insertingpanel Pallet <br /> Installwoodstripflooring install strip flooring < br /> <br /> J &#8212;- <br /> Japanesebeech Japanese beech <br /> Japaneselarch Japanese larch <br /> Japanese (red) pine Japan Akamatsu <br /> Japanesethuja Luo Hanbo <br /> Japanesewhitepine Japan to be loose <br /> Jointflooring tongue and groove floor <br /> Jointlessflooring seamless flooring <br /> K &#8212;- <br /> the <br the /> Karelianbirch g if Lee birch board <br /> Kerfwidth saws road width <br /> Khaya senegalensis <br /> <br the /> Kilndriedpine kiln dried pine wood <br /> Kilndrying artificial kiln drying <br /> Kindoftimber timber species <br /> Kirl purple Paulownia <br /> the Knob Setsuko <br /> Knock-downcarcass may at any time the framework of the demolition <br /> Knot, knot, knots <br /> L &#8212;- <br /> Laminate laminate <br /> Laminatedwood laminated wood, multi-layer laminated wood <br /> <br the /> Leg leg, foot <br /> <br the /> Liquidcuttingofwood timber hydraulic cutting <br /> Log logs <br /> Loggrade log grades </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/709/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>outdoor furniture &#8211; Artie, baby basket</title>
		<link>http://www.5alin.com/archives/708</link>
		<comments>http://www.5alin.com/archives/708#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:27:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[outdoorfurniture]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[<br /> Name: baby basket BABY SWING <br /> belongs]]></description>
			<content:encoded><![CDATA[<p> Name: baby basket BABY SWING <br /> belongs to the: Product: Asian emperor </p>
<p> <img src = "http://img1.bbs.163 .com/new/20111226/sheji/sa/saki1982/3f613483a3288ead5558b573ba4c67d0.jpg "/> <br /> <img src =" http://img2.bbs.163.com/new/20111226/sheji/sa/saki1982/ 73dd19066bdf5188c7d3371ed1e5aec0.jpg "/> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/708/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Noble and charming ASHLEY furniture</title>
		<link>http://www.5alin.com/archives/707</link>
		<comments>http://www.5alin.com/archives/707#comments</comments>
		<pubDate>Fri, 03 Feb 2012 12:27:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ashleyfurniture]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[June 27, 2011 <br /> ASHLEY famous furniture brand]]></description>
			<content:encoded><![CDATA[<p>June 27, 2011 <br /> ASHLEY famous furniture brand from Arcadia, has over 50 years of development history, the nation largest furniture manufacturer, and year-round to maintain sales The ASHLEY company always adhere to the class design and products for the consumer home into a fine and elegant living environment. Features: affordable, fine workmanship, sophisticated materials, the United States and flavor! <br /> <img src = &#8220;http://s7.sinaimg.cn/middle/82df4a98na6abbd05c6d6</p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/707/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Reserved] C # keywords &#8211; using</title>
		<link>http://www.5alin.com/archives/706</link>
		<comments>http://www.5alin.com/archives/706#comments</comments>
		<pubDate>Tue, 03 Jan 2012 14:24:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[idisposable]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[November 18, 2011 <br /> <strong> using keyword ha]]></description>
			<content:encoded><![CDATA[<p>November 18, 2011 <br /> <strong> using keyword has two main purposes: </ strong> <strong> <br /> </ strong> <strong> (a ) as instructions for creating an alias for a namespace or import other types defined in a namespace. <br /> </ strong> <strong> (b) As a statement, used to define a range, in this range will be released at the end of the object. <br /> </ strong> <strong> using directive <br /> </ strong> ① allow the use of types in a namespace, so you do not have space in the name of a limited a type of use: <br /> <strong> using System.Text; </ strong> <br /> <strong> using PC.Company; </ strong> <br /> < br /> ② To create an alias for a namespace or type. <br /> <strong> using MyCompany = PC.Company; </ strong> / / namespace alias. <br /> <strong> using Project = PC.Company.Project; </ strong> / / type of alias <br /> using namespace introduced, does not mean that the compiler compiled with the set the namespace where the assembly, <strong> assembly process of the load depends on the existence of an assembly operation is invoked </ strong>, if there is no code, the compiler will call the action does not load using the namespace where the introduction of the assembly. Therefore, beginning in the source file, the introduction of multiple namespaces, not loading multiple assemblies, will not cause &#8220;excessive reference&#8221; of the state. <br /> create an alias for another important reason is that the same file into a different namespace includes the type of the same name, such as SharpMap.Geometries.Point with System.Drawing.Point. To avoid name conflicts can be resolved by setting an alias: <br /> <strong> using SGPoint = SharpMap.Geometries.Point; </ strong> <br /> <strong> using SDPoint = System.Drawing.Point; </ strong> <br /> Although we can type the whole name to be distinguished, but this is clearly not the best solution. Create an alias with the using directive, effective solution to this potential naming conflicts, is the best solution. <br /> <strong> using statement <br /> </ strong> using statement allows the programmer to specify the use of resources when the object should release resources. objects used in a using statement must implement the IDisposable interface. This interface provides the Dispose method, which will release resources for this object. <strong> <br /> </ strong> <strong> ① being declared in the using statement object. </ Strong> <br /> Font font2 = new Font (&#8220;Arial&#8221;, 10.0f); <br /> using (font2) <br /> {<br / > <br /> / / use font2 <br />} <br /> <strong> ② in the using statement before the statement object. </ Strong> <br /> using (Font font2 = new Font (&#8220;Arial&#8221;, 10.0f)) <br /> {<br /> / / use font2 < br /> <br />} <br /> <strong> ③ Multiple objects can be used together with the using statement, but must be declared inside the using statement in these objects. </ Strong> <br /> using (Font font3 = new Font (&#8220;Arial&#8221;, 10.0f), font4 = new Font (&#8220;Arial&#8221;, 10.0f)) <br /> { <br /> / / Use font3 and font4. <br />} <br /> <strong> use rules </ strong> <br /> ① using can only be used to implement the IDisposable interface type, to prohibit the type does not support the IDisposable interface using statement, otherwise it will appear <strong> compile error </ strong>; <br /> ② <strong> using statement for clean-up individual unmanaged resources, and more to clean up the unmanaged object is best to try-finnaly to achieve, because there may be nested using statement to hide the Bug. </ Strong> inner using block throws an exception, will not block the release of the outer layer of the object using resources; <br /> ③ using multiple variable initialization statement to support, but only the type of these variables must be the same For example: <br /> using (Pen p1 = new Pen (Brushes.Black), p2 = new Pen (Brushes.Blue)) <br /> {<br /> <br / > / / <br />} <br /> ④ for the initialization of the different types of variables can be declared as IDisposable type are, for example: <br /> using (IDisposable font = new Font (&#8220;Verdana&#8221;, 12), pen = new Pen (Brushes.Black)) <br /> {<br /> float size = (font as Font) . Size; <br /> Brush brush = (pen as Pen). Brush; <br />} <br /> <strong> using real </ strong> <br /> at the assembly stage, the compiler will automatically be using try-finally statement is generated as a statement in the finally block and call the object Dispose method to clean up resources. Therefore, using try-finally statement is equivalent to the statement, for example: <br /> Font f2 = new Font (&#8220;Arial&#8221;, 10, FontStyle.Bold); <br /> try <br /> {<br /> / / perform text drawing operations <br />} <br /> finally <br /> {<br /> if (f2! = null) ((IDisposable) f2). Dispose (); <br />} </p>
]]></content:encoded>
			<wfw:commentRss>http://www.5alin.com/archives/706/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

