<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Future-Me on about:rileycsillag fka drewcsillag</title>
		<link>https://riley.thecsillags.com/categories/future-me/</link>
		<description>Recent content in Future-Me on about:rileycsillag fka drewcsillag</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<lastBuildDate>Sat, 25 Apr 2015 11:18:00 -0400</lastBuildDate>
		
			<atom:link href="https://riley.thecsillags.com/categories/future-me/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Java Server Best Practices</title>
				<link>https://riley.thecsillags.com/posts/2015-04-25-java-server-best-practices/</link>
				<pubDate>Sat, 25 Apr 2015 11:18:00 -0400</pubDate>
				<guid>https://riley.thecsillags.com/posts/2015-04-25-java-server-best-practices/</guid>
				<description>&lt;p&gt;When writing Java servers (or servlets that run in a container), I&amp;rsquo;ve&#xA;learned a few things that have saved me a bunch of trouble during&#xA;development, as well as later on.&lt;/p&gt;&#xA;&lt;!-- more --&gt;&#xA;&lt;h2 id=&#34;dependency-injection&#34;&gt;Dependency Injection&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Injection: if something is singleton (request, global or any other&#xA;scope), the only things injected to it should also be singleton &amp;ndash;&#xA;otherwise you get implicit singletons of things the singleton holds,&#xA;and may not be what you want &amp;ndash; and generally harder to reason&#xA;about.  Better to have the singleton instances be leaves in the tree&#xA;of injected things.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
