Eclipse 3.6 Auto Static Import
After I started using JUnit 4, I really want Eclipse to automatically import org.junit.Assert.* statically for me. So when I do ctrl+space on methods like assertTrue, it will do: import static...
View Articlem2eclipse plugin jdk warning
More info – old issue but I ran into it on every freaking machine at home. After I installed the m2eclipse plugin on Eclipse 3.6, I keep getting the following warning on the console: The Maven...
View ArticleEclipse 3.6 freezes at startup
My Eclipse 3.6 froze today at startup. I think what I did was that I clicked on the shortcut a bit too fast and two instances of Eclipse started running at the same time. I got an error message for one...
View ArticleJava concurrency – Multiple queue monitors
At work, I’ve implemented a queue monitor batch application. Due to business rule changes, it now needs to monitor two queues. Instead of creating another batch application, I really wanted to stick...
View ArticleSPEL! I conquered you on a Friday!
Today is my first attempt at using SPEL. After a mighty struggle, I was able to conquer it! Background: I needed a year variable for some work on a jsp page. It’s not always defined. I know for our...
View Article2011 nfjs Central Iowa Software Symposium
My survey responses to the 2011 nfjs Central Iowa Software Symposium event for my company. Benefits to you and the company from attending this event: Keep up to date regarding the current technologies...
View ArticleJava Generics – conditionally instantiate a class
From Class to list of Enums public static <T extends Enum> List<T> getList(Class<T> clazz) { return Arrays.asList(clazz.getEnumConstants()); } So if I want to instantiate a class via...
View ArticleJackson Ignore Property/Convenience Method
Here’s something I learned about Jackson and you may run into it. What gets serialized by default? Properties of an object are initially determined by process called auto-detection: all member methods...
View ArticleSpring JdbcTemplate to get db function output
e.g. SQL select myFunction(param1, param2) from dual returns a String value. Do this using Spring JdbcTemplate via: String result = getJdbcTemplate().queryForObject(sql, new Object[] { param1, param2...
View ArticleJackson default conversion behavior (java json library spring uses)
So I complain. I think it could be done better but I didn’t do any research as why this is the default behavior of Jackson so you can educate me the whole reason behind this design. Since Jackson is...
View Article