<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments for Coming Up for Air</title> <atom:link href="http://blogs.steeplesoft.com/comments/feed/" rel="self" type="application/rss+xml" /><link>http://blogs.steeplesoft.com</link> <description></description> <lastBuildDate>Wed, 25 Apr 2012 16:46:17 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Paul Brickell</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10347</link> <dc:creator>Paul Brickell</dc:creator> <pubDate>Wed, 25 Apr 2012 16:46:17 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10347</guid> <description>Jason,Thanks for taking the time.I was hoping that I had missed something in my reading around about how authentication worked. I guess basic authentication and managing credentials is the way to go.</description> <content:encoded><![CDATA[<p>Jason,</p><p>Thanks for taking the time.</p><p>I was hoping that I had missed something in my reading around about how authentication worked. I guess basic authentication and managing credentials is the way to go.</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10346</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Wed, 25 Apr 2012 13:40:16 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10346</guid> <description>Hi, Paul.  I don&#039;t have a good response, necessarily, off the top of my head, but if you trust your environment enough, you might be able to keep a master copy of the credentials file somewhere on your network, then have your script scp (or rsync or...) the file to localhost before the REST calls are made.  Since you have the credentials on disk, albeit hashed, as is reasonable, it sounds like your setup is probably secure enough for something like this.  There might be better solutions (shared database, perhaps, though that&#039;s pretty heavy), but this is what comes to mind off hand. :)</description> <content:encoded><![CDATA[<p>Hi, Paul.  I don&#8217;t have a good response, necessarily, off the top of my head, but if you trust your environment enough, you might be able to keep a master copy of the credentials file somewhere on your network, then have your script scp (or rsync or&#8230;) the file to localhost before the REST calls are made.  Since you have the credentials on disk, albeit hashed, as is reasonable, it sounds like your setup is probably secure enough for something like this.  There might be better solutions (shared database, perhaps, though that&#8217;s pretty heavy), but this is what comes to mind off hand. :)</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Paul Brickell</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10345</link> <dc:creator>Paul Brickell</dc:creator> <pubDate>Wed, 25 Apr 2012 13:16:12 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10345</guid> <description>Hi,Can I do something about the admin credentials in these calls?I have some scripts which use these APIs but these require that I keep the admin credentials on the client. I have no problem with that. It is easy enough to create a file with hashed values, for example. My problem is the maintenance of copies of these credentials means more work.I&#039;m struggling to find any recommendations for a good approach.</description> <content:encoded><![CDATA[<p>Hi,</p><p>Can I do something about the admin credentials in these calls?</p><p>I have some scripts which use these APIs but these require that I keep the admin credentials on the client. I have no problem with that. It is easy enough to create a file with hashed values, for example. My problem is the maintenance of copies of these credentials means more work.</p><p>I&#8217;m struggling to find any recommendations for a good approach.</p> ]]></content:encoded> </item> <item><title>Comment on From OS X to Linux by errorflag</title><link>http://blogs.steeplesoft.com/2012/04/from-os-x-to-linux/comment-page-1/#comment-10344</link> <dc:creator>errorflag</dc:creator> <pubDate>Wed, 25 Apr 2012 04:28:53 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1202#comment-10344</guid> <description>I&#039;ve also switched back to Linux from OSX. The ipadification of OSX made me switch back. I&#039;ve also experienced the menu bug in Netbeans
when using Gnome 3 as a desktop environment.</description> <content:encoded><![CDATA[<p>I&#8217;ve also switched back to Linux from OSX. The ipadification of OSX made me switch back. I&#8217;ve also experienced the menu bug in Netbeans<br
/> when using Gnome 3 as a desktop environment.</p> ]]></content:encoded> </item> <item><title>Comment on From OS X to Linux by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/04/from-os-x-to-linux/comment-page-1/#comment-10338</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Mon, 23 Apr 2012 22:06:12 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1202#comment-10338</guid> <description>That&#039;s interesting. I don&#039;t use gestures much, so I haven&#039;t been bothered by that, and the video seems for what I do. :)</description> <content:encoded><![CDATA[<p>That&#8217;s interesting. I don&#8217;t use gestures much, so I haven&#8217;t been bothered by that, and the video seems for what I do. :)</p> ]]></content:encoded> </item> <item><title>Comment on From OS X to Linux by grigio</title><link>http://blogs.steeplesoft.com/2012/04/from-os-x-to-linux/comment-page-1/#comment-10337</link> <dc:creator>grigio</dc:creator> <pubDate>Mon, 23 Apr 2012 21:47:32 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1202#comment-10337</guid> <description>Hi, I would also come back to Linux (on Mac), but there are important features which are still missing. e.g trackpad gestures and a fullfeature video driver http://grigio.org/macbook_air_4_1_2011_ubuntu_linux_12_04_liveusb</description> <content:encoded><![CDATA[<p>Hi, I would also come back to Linux (on Mac), but there are important features which are still missing. e.g trackpad gestures and a fullfeature video driver <a
href="http://grigio.org/macbook_air_4_1_2011_ubuntu_linux_12_04_liveusb" >http://grigio.org/macbook_air_4_1_2011_ubuntu_linux_12_04_liveusb</a></p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10299</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Tue, 10 Apr 2012 18:48:18 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10299</guid> <description>That was going to be my next question.Thanks for the kind words.  Glad you got it going. :)</description> <content:encoded><![CDATA[<p>That was going to be my next question.</p><p>Thanks for the kind words.  Glad you got it going. :)</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Lam</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10298</link> <dc:creator>Lam</dc:creator> <pubDate>Tue, 10 Apr 2012 18:01:23 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10298</guid> <description>Jason,
It turns out that using CsrfProtectionFilter, as you suggest originally in the blog, solves the issue.  I should have tried that earlier.BTW, this is a great blog for Glassfish and REST api.Thanks,
Lam</description> <content:encoded><![CDATA[<p>Jason,<br
/> It turns out that using CsrfProtectionFilter, as you suggest originally in the blog, solves the issue.  I should have tried that earlier.</p><p>BTW, this is a great blog for Glassfish and REST api.</p><p>Thanks,<br
/> Lam</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Lam</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10296</link> <dc:creator>Lam</dc:creator> <pubDate>Tue, 10 Apr 2012 15:54:55 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10296</guid> <description>I just used curl as well as the stock Rest API: https://localhost:4848/management/domain/applications/applicationHere is the full curl command:
curl -k --user admin:admin -X POST -H &#039;X-Requested-By: YeaGlassFish&#039; -d id=&#039;test.war&#039; -d force=true https://localhost:4848/management/domain/applications/applicationHere is the response:
File not found : C:\glassfish3\glassfish\domains\domain1\config\test.warSo I installed Glassfish and then enabled secure admin by issuing the command &quot;enable-secure-admin&quot; and then ran the deploying mechanism described above.
We installed another instance of Glassfish in another box and exhibit the same behavior.Given the &lt;a href=&#039;http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-and-rest-security/&#039; rel=&quot;nofollow&quot;&gt;security update&lt;/a&gt; in 3.1.2, I&#039;m wondering if there are additional setup steps that I might have missed that would cause this.It&#039;s used to work on 3.1.1
Thanks,
Lam</description> <content:encoded><![CDATA[<p>I just used curl as well as the stock Rest API: <a
href="https://localhost:4848/management/domain/applications/application" >https://localhost:4848/management/domain/applications/application</a></p><p>Here is the full curl command:<br
/> curl -k &#8211;user admin:admin -X POST -H &#8216;X-Requested-By: YeaGlassFish&#8217; -d id=&#8217;test.war&#8217; -d force=true <a
href="https://localhost:4848/management/domain/applications/application" >https://localhost:4848/management/domain/applications/application</a></p><p>Here is the response:<br
/> File not found : C:\glassfish3\glassfish\domains\domain1\config\test.war</p><p>So I installed Glassfish and then enabled secure admin by issuing the command &#8220;enable-secure-admin&#8221; and then ran the deploying mechanism described above.<br
/> We installed another instance of Glassfish in another box and exhibit the same behavior.</p><p>Given the <a
href='http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-and-rest-security/' >security update</a> in 3.1.2, I&#8217;m wondering if there are additional setup steps that I might have missed that would cause this.</p><p>It&#8217;s used to work on 3.1.1<br
/> Thanks,<br
/> Lam</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10295</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Tue, 10 Apr 2012 15:39:18 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10295</guid> <description>Can you share the code you&#039;re using to deploy?</description> <content:encoded><![CDATA[<p>Can you share the code you&#8217;re using to deploy?</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Lam</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10294</link> <dc:creator>Lam</dc:creator> <pubDate>Tue, 10 Apr 2012 15:37:45 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10294</guid> <description>Jason,
I recently upgraded Glassfish to 3.1.2 and am no longer able to deploy apps using the REST API.  The error message I returned is &quot;File not found : pathToGlassfishInstall\\domains\\domain1\\config\file.war&quot;.Any insights would be appreciated.
Lam</description> <content:encoded><![CDATA[<p>Jason,<br
/> I recently upgraded Glassfish to 3.1.2 and am no longer able to deploy apps using the REST API.  The error message I returned is &#8220;File not found : pathToGlassfishInstall\\domains\\domain1\\config\file.war&#8221;.</p><p>Any insights would be appreciated.<br
/> Lam</p> ]]></content:encoded> </item> <item><title>Comment on Getting Started with JavaFX on the Mac by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/04/getting-started-with-javafx-on-the-mac/comment-page-1/#comment-10284</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Sat, 07 Apr 2012 01:31:51 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1169#comment-10284</guid> <description>Ah! Sweet. Thanks.  I just haven&#039;t had time to dig or ask for answer.  I&#039;ve seen it work at one point, then it quit, so I thought I might be doing something wrong.  I&#039;ll give that a whirl! :)</description> <content:encoded><![CDATA[<p>Ah! Sweet. Thanks.  I just haven&#8217;t had time to dig or ask for answer.  I&#8217;ve seen it work at one point, then it quit, so I thought I might be doing something wrong.  I&#8217;ll give that a whirl! :)</p> ]]></content:encoded> </item> <item><title>Comment on Getting Started with JavaFX on the Mac by Scott K.</title><link>http://blogs.steeplesoft.com/2012/04/getting-started-with-javafx-on-the-mac/comment-page-1/#comment-10283</link> <dc:creator>Scott K.</dc:creator> <pubDate>Fri, 06 Apr 2012 21:56:26 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1169#comment-10283</guid> <description>The problem you&#039;re seeing with Java 7 and text on the Mac is a known problem. If you are on a MacBook Pro a workaround is to turn off &#039;Automatic graphics switching&#039; in the Energy Saver preference pane. We think we have a fix.</description> <content:encoded><![CDATA[<p>The problem you&#8217;re seeing with Java 7 and text on the Mac is a known problem. If you are on a MacBook Pro a workaround is to turn off &#8216;Automatic graphics switching&#8217; in the Energy Saver preference pane. We think we have a fix.</p> ]]></content:encoded> </item> <item><title>Comment on Comparing JVM Web Frameworks &#8211; A Critique by juan</title><link>http://blogs.steeplesoft.com/2012/02/comparing-jvm-web-frameworks-a-critique/comment-page-1/#comment-10256</link> <dc:creator>juan</dc:creator> <pubDate>Mon, 19 Mar 2012 02:41:06 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1137#comment-10256</guid> <description>You know? I used that comparative to choose a new framework and it lead me to Grails, but i decided to try jsf instead. Every framework have its advocates,its normal. But a good programmer have to make his owns comparatives and that numerical table in the Raible presentation it is ridiculous. By the way JSF2 looks great but incomplete, maybe lack of good examples xD</description> <content:encoded><![CDATA[<p>You know? I used that comparative to choose a new framework and it lead me to Grails, but i decided to try jsf instead. Every framework have its advocates,its normal. But a good programmer have to make his owns comparatives and that numerical table in the Raible presentation it is ridiculous. By the way JSF2 looks great but incomplete, maybe lack of good examples xD</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish 3.1.2, REST Security, and the Jersey Client by Dan Allen</title><link>http://blogs.steeplesoft.com/2012/03/glassfish-3-1-2-rest-security-and-the-jersey-client/comment-page-1/#comment-10250</link> <dc:creator>Dan Allen</dc:creator> <pubDate>Mon, 12 Mar 2012 14:45:02 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1153#comment-10250</guid> <description>Thanks Jason! You can see this admin client in action in the &lt;a href=&quot;http://github.com/arquillian/arquillian-container-glassfish&quot; rel=&quot;nofollow&quot;&gt;Arquillian GlassFish 3.1 managed and remote containers&lt;/a&gt; (once the pull request is accepted). I&#039;ll add the link when it gets merged in.</description> <content:encoded><![CDATA[<p>Thanks Jason! You can see this admin client in action in the <a
href="http://github.com/arquillian/arquillian-container-glassfish" >Arquillian GlassFish 3.1 managed and remote containers</a> (once the pull request is accepted). I&#8217;ll add the link when it gets merged in.</p> ]]></content:encoded> </item> <item><title>Comment on Grabbing Screenshots of Failed Selenium Tests by Jo Grimstad</title><link>http://blogs.steeplesoft.com/2012/01/grabbing-screenshots-of-failed-selenium-tests/comment-page-1/#comment-10228</link> <dc:creator>Jo Grimstad</dc:creator> <pubDate>Mon, 20 Feb 2012 12:18:29 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1104#comment-10228</guid> <description>Could you please add a description of how to instantiate the driver object (line 18 in ScreenshotTestRule)? Thanks.</description> <content:encoded><![CDATA[<p>Could you please add a description of how to instantiate the driver object (line 18 in ScreenshotTestRule)? Thanks.</p> ]]></content:encoded> </item> <item><title>Comment on Comparing JVM Web Frameworks &#8211; A Critique by Jason Lee</title><link>http://blogs.steeplesoft.com/2012/02/comparing-jvm-web-frameworks-a-critique/comment-page-1/#comment-10218</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Wed, 15 Feb 2012 20:29:36 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1137#comment-10218</guid> <description>I think that&#039;s exactly right.  It&#039;s hard not to let your biases show (which is one reason I try to disclose mine if I can :), but these presentations don&#039;t seem to attempt to avoid bias.  Again, perhaps having audio would help, but, given the long history of this particular presentation, I&#039;m not optimistic.</description> <content:encoded><![CDATA[<p>I think that&#8217;s exactly right.  It&#8217;s hard not to let your biases show (which is one reason I try to disclose mine if I can :), but these presentations don&#8217;t seem to attempt to avoid bias.  Again, perhaps having audio would help, but, given the long history of this particular presentation, I&#8217;m not optimistic.</p> ]]></content:encoded> </item> <item><title>Comment on Comparing JVM Web Frameworks &#8211; A Critique by rld</title><link>http://blogs.steeplesoft.com/2012/02/comparing-jvm-web-frameworks-a-critique/comment-page-1/#comment-10217</link> <dc:creator>rld</dc:creator> <pubDate>Wed, 15 Feb 2012 17:49:53 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1137#comment-10217</guid> <description>This is the number one concern I have about Raible&#039;s presentations.  They clearly are filtered through his anti-JSF bias, which undermines the credibility of his presentation on a very worthwhile subject.</description> <content:encoded><![CDATA[<p>This is the number one concern I have about Raible&#8217;s presentations.  They clearly are filtered through his anti-JSF bias, which undermines the credibility of his presentation on a very worthwhile subject.</p> ]]></content:encoded> </item> <item><title>Comment on A Jersey POJOMapping Client/Server Example by Alan OLeary</title><link>http://blogs.steeplesoft.com/2012/01/a-jersey-pojomapping-clientserver-example/comment-page-1/#comment-10196</link> <dc:creator>Alan OLeary</dc:creator> <pubDate>Mon, 06 Feb 2012 08:22:23 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1122#comment-10196</guid> <description>Does POJOMapper offer any hooks/provisions for versioning ? (versioning is currently possible using the marshaller and transforms)</description> <content:encoded><![CDATA[<p>Does POJOMapper offer any hooks/provisions for versioning ? (versioning is currently possible using the marshaller and transforms)</p> ]]></content:encoded> </item> <item><title>Comment on Grabbing Screenshots of Failed Selenium Tests by Stephan Schroevers</title><link>http://blogs.steeplesoft.com/2012/01/grabbing-screenshots-of-failed-selenium-tests/comment-page-1/#comment-10179</link> <dc:creator>Stephan Schroevers</dc:creator> <pubDate>Tue, 31 Jan 2012 09:21:15 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1104#comment-10179</guid> <description>Nice example; I wrote something similar for our test suite. Note that more recent versions of JUnit have deprecated MethodRule in favor of TestRule. The latter supports the @ClassRule annotation, for use with *static* fields. This means that you can then also take a screenshot if some @BeforeClass or @AfterClass code fails.</description> <content:encoded><![CDATA[<p>Nice example; I wrote something similar for our test suite. Note that more recent versions of JUnit have deprecated MethodRule in favor of TestRule. The latter supports the @ClassRule annotation, for use with *static* fields. This means that you can then also take a screenshot if some @BeforeClass or @AfterClass code fails.</p> ]]></content:encoded> </item> <item><title>Comment on GlassFish REST Client: ComplexExample.java by Bas van Gils</title><link>http://blogs.steeplesoft.com/2011/10/glassfish-rest-client-complexexample-java/comment-page-1/#comment-9979</link> <dc:creator>Bas van Gils</dc:creator> <pubDate>Thu, 01 Dec 2011 09:28:51 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1042#comment-9979</guid> <description>Wow, this is great!At the moment I really miss having (maintainable) scripted configuration of domains and instances for GlassFish 3.1.1 for multiple servers.Besides that I was thinking about creating a REST client myself, primarily for monitoring though.
Will monitoring also be supported in the REST client?Is there a chance that the REST client will become available for the GlassFish 3.x range?</description> <content:encoded><![CDATA[<p>Wow, this is great!</p><p>At the moment I really miss having (maintainable) scripted configuration of domains and instances for GlassFish 3.1.1 for multiple servers.</p><p>Besides that I was thinking about creating a REST client myself, primarily for monitoring though.<br
/> Will monitoring also be supported in the REST client?</p><p>Is there a chance that the REST client will become available for the GlassFish 3.x range?</p> ]]></content:encoded> </item> <item><title>Comment on Funky Object Initialization by Jason Lee</title><link>http://blogs.steeplesoft.com/2011/10/funky-object-initialization/comment-page-1/#comment-9897</link> <dc:creator>Jason Lee</dc:creator> <pubDate>Thu, 10 Nov 2011 15:04:38 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1047#comment-9897</guid> <description>The more I think about it, the more I think it&#039;s probably an instance initialization block:public class Foo {
{
System.out.println(&quot;instance&quot;);
}static {
System.out.println(&quot;static&quot;);
}public Foo() {
System.out.println(&quot;ctor&quot;);
}public static void main(String... args) {
Foo foo = new Foo();
}
}$ javac Foo.java
$ java Foo
static
instance
ctor</description> <content:encoded><![CDATA[<p>The more I think about it, the more I think it&#8217;s probably an instance initialization block:</p><p>public class Foo {<br
/> {<br
/> System.out.println(&#8220;instance&#8221;);<br
/> }</p><p> static {<br
/> System.out.println(&#8220;static&#8221;);<br
/> }</p><p> public Foo() {<br
/> System.out.println(&#8220;ctor&#8221;);<br
/> }</p><p> public static void main(String&#8230; args) {<br
/> Foo foo = new Foo();<br
/> }<br
/> }</p><p>$ javac Foo.java<br
/> $ java Foo<br
/> static<br
/> instance<br
/> ctor</p> ]]></content:encoded> </item> <item><title>Comment on Funky Object Initialization by Andrei Solntsev</title><link>http://blogs.steeplesoft.com/2011/10/funky-object-initialization/comment-page-1/#comment-9865</link> <dc:creator>Andrei Solntsev</dc:creator> <pubDate>Tue, 01 Nov 2011 20:16:46 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1047#comment-9865</guid> <description>Hei,
the &lt;a href=&quot;http://guava- libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Maps.html&quot; rel=&quot;nofollow&quot;&gt;Guava library&lt;/a&gt; has several methods for creating objects. For instance, that is how map could be created:&lt;code&gt;Map map = ImmutableMap.of(&quot;a&quot;, 4, &quot;b&quot;, 9);&lt;/code&gt;For creating lists Arrays.asList is very useful:
&lt;code&gt;asList(“foo”, “bar”, “baz”, “bob”)&lt;/code&gt;</description> <content:encoded><![CDATA[<p>Hei,<br
/> the <a
href="http://guava- libraries.googlecode.com/svn/trunk/javadoc/com/google/common/collect/Maps.html" >Guava library</a> has several methods for creating objects. For instance, that is how map could be created:</p><p><code>Map map = ImmutableMap.of("a", 4, "b", 9);</code></p><p>For creating lists Arrays.asList is very useful:<br
/> <code>asList(“foo”, “bar”, “baz”, “bob”)</code></p> ]]></content:encoded> </item> <item><title>Comment on Funky Object Initialization by mca</title><link>http://blogs.steeplesoft.com/2011/10/funky-object-initialization/comment-page-1/#comment-9863</link> <dc:creator>mca</dc:creator> <pubDate>Tue, 01 Nov 2011 09:52:08 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1047#comment-9863</guid> <description>I don&#039;t think that you are overriding the &quot;static initializer block&quot; more likely the default constructor. Nice though</description> <content:encoded><![CDATA[<p>I don&#8217;t think that you are overriding the &#8220;static initializer block&#8221; more likely the default constructor. Nice though</p> ]]></content:encoded> </item> <item><title>Comment on Funky Object Initialization by Justin Lee</title><link>http://blogs.steeplesoft.com/2011/10/funky-object-initialization/comment-page-1/#comment-9851</link> <dc:creator>Justin Lee</dc:creator> <pubDate>Wed, 26 Oct 2011 02:21:09 +0000</pubDate> <guid
isPermaLink="false">http://blogs.steeplesoft.com/?p=1047#comment-9851</guid> <description>You&#039;re creating an anonymous inner class with an initialization block.  Think of it as kind of an anonymous constructor.  This is a nicer way to pass in a quick list:someObject.someMethodThatTakesAList(Arrays.asList(&quot;foo&quot;, &quot;bar&quot;, &quot;baz&quot;, &quot;bob&quot;));This will create an immutable List.  If you want a mutable one, just wrap asList() in new ArrayList().</description> <content:encoded><![CDATA[<p>You&#8217;re creating an anonymous inner class with an initialization block.  Think of it as kind of an anonymous constructor.  This is a nicer way to pass in a quick list:</p><p>someObject.someMethodThatTakesAList(Arrays.asList(&#8220;foo&#8221;, &#8220;bar&#8221;, &#8220;baz&#8221;, &#8220;bob&#8221;));</p><p>This will create an immutable List.  If you want a mutable one, just wrap asList() in new ArrayList().</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 10/44 queries in 0.296 seconds using disk: basic

Served from: blogs.steeplesoft.com @ 2012-05-21 19:20:40 -->
