<?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>Digicorp &#187; java</title>
	<atom:link href="http://dev.digi-corp.com/category/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.digi-corp.com</link>
	<description>&#62;&#62; Developer Blog</description>
	<lastBuildDate>Wed, 22 Jun 2011 14:13:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Easy Data Access In Pages Of GWT/Swing Application</title>
		<link>http://dev.digi-corp.com/2009/07/easy-data-access-in-pages-of-gwtswing-application/</link>
		<comments>http://dev.digi-corp.com/2009/07/easy-data-access-in-pages-of-gwtswing-application/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:33:48 +0000</pubDate>
		<dc:creator>vishal.shukla</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[GWT]]></category>

		<guid isPermaLink="false">http://dev.digi-corp.com/?p=872</guid>
		<description><![CDATA[When developing desktop based or similar applications, it becomes headache to synchronize data between different pages. Say when Delete is clicked in context menu of some node of tree, Grid and some other panels need to be notified. Here is one simple way for accessing data of other panels. We have singleton session object (only [...]]]></description>
			<content:encoded><![CDATA[<p>When developing desktop based or similar applications, it becomes headache to synchronize data between different pages. Say when Delete is clicked in context menu of some node of tree, Grid and some other panels need to be notified. Here is one simple way for accessing data of other panels. We have singleton session object (only one object at runtime) at each client’s runtime. So when we have some data that need to be used in other pages, we can put those objects in the session map and access it from the other class. Here is how we can create class that gives singleton instance of session map.</p>
<p><code><br />
import java.util.HashMap;<br />
public class SessionFactory {</code></p>
<p>private static HashMap session;<br />
private SessionFactory(){<br />
}</p>
<p>public static HashMap getSessionInstance(){<br />
if(session==null){<br />
session = new HashMap();<br />
}</p>
<p>return session;<br />
}</p>
<p>}</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.digi-corp.com/2009/07/easy-data-access-in-pages-of-gwtswing-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

