Search   Feed   Browse   Add
Feed items 1 - 10 of 15 for July 2008

Joe Walnes

Objects, adaptable and maintainable designs, agile, enterprise systems, XP, Java and .NET, blah blah.

Creative uses of Hamcrest matchers - (Found July 2, 2008 )

The matcher API of Hamcrest is typically associated with assertThat() or mocks. I always knew other people would find good uses for it, but I never really knew what. I particularly like these: Collection processing Håkan Råberg blogged about how Hamcrest can be used with iterators: List<Integer> numbers = Arrays.asList(-1, 0, 1, 2); List<Integer> positiveNumbers = detect(numbers, greaterThan(0))); List<String> words = Arrays.asList("cheese", "lemon",...
http://joe.truemesh.com/blog//000705.html

Accessing generic type information at runtime - (Found July 2, 2008 )

A common misconception about generics in Java 5 is that you can't access them at runtime. What you can't find out at runtime is which generic type is associated with an instance of an object. However you can use reflection to look at which types have been staticly associated with a member of a class. public class GenericsTest extends TestCase class Thing public Map<String,Integer> stuff; public void test() throws Exception Field field =...
http://joe.truemesh.com/blog//000495.html

XStream 1.1.1 released - (Found July 2, 2008 )

I'm pleased to announce the release of XStream 1.1.1 - the powerful, yet easy to use Java to XML serialization library. Some of the improvements in this release: Converters can be registered with a priority, allowing more generic filters to handle classes that don't have more specific converters. Converters can now access underlying HierarchicalStreamReaderWriter implementations to make implementation specific calls. Improved support for classes using ObjectInputFields and...
http://joe.truemesh.com/blog//000496.html

VB.Net is the bestest - (Found July 2, 2008 )

I was happily coding away in VB.Net today (grrr) when I noticed a little weirdity in the intellisense popup. Documentation says: The NotOverridable modifier defines a method of a base class that cannot be overridden in derived classes. All methods are NotOverridable unless marked with the Overridable modifier. You can use the NotOverridable modifier when you do not want to allow an overridden method to be overridden again in a derived class. Makes C++ look simple.
http://joe.truemesh.com/blog//000501.html

XStream 1.1.2 released. Java 5 Enums, JavaBeans, field aliasing, StAX, and more... - (Found July 2, 2008 )

New features: Java 5 Enum support. JavaBeanConverter for serialization using getters and setters. Aliasing of fields. StAX integration, with namespaces. Improved support on JDK 1.3 and IBM JDK. Changelog: http:xstream.codehaus.orgchanges.html Full download: http:dist.codehaus.orgxstreamdistributionsxstream-1.1.2.zip Jar only: http:dist.codehaus.orgxstreamjarsxstream-1.1.2.jar
http://joe.truemesh.com/blog//000508.html

SiteMesh and Content Management O'Reilly OpenSource Conference - (Found July 2, 2008 )

I'm talking at the O'Reilly OpenSource Conference (OSCON) - Wednesday Aug 3, Portland, Oregon. Come and say hi. A problem faced in every web application is how to separate style from content. SiteMesh is a framework that provides an elegant solution to this, resulting in a clean separation that is straightforward to work with, complements other web frameworks, and is easily applied to existing applications. The first part of this session introduces SiteMesh, including an overview of the...
http://joe.truemesh.com/blog//000510.html

Flexible JUnit assertions with assertThat() - (Found July 2, 2008 )

Over time I've found I end up with a gazillion permutation of assertion methods in JUnit: assertEquals, assertNotEquals, assertStringContains, assertArraysEqual, assertInRange, assertIn, etc. Here's a nicer way. jMock contains a constraint library for specifying precise expectations on mocks that can be reused in your own assertion method (and that's the last time I'm going to mention mocks today, I promise - despite the frequent references to the jMock library). By making a simple JUnit...
http://joe.truemesh.com/blog//000511.html

OSCon: SiteMesh, SiteMesh, SiteMesh, SiteMesh - (Found July 2, 2008 )

Just got back from the O'Reilly Open Source Convention in Portland. Fantastic conference - met lots of really interesting people (and the odd nutter). It was a good conference for SiteMesh. It opened my eyes to two things: SiteMesh rocks. People who have tried SiteMesh, love it and don't turn back. Their preferred choice for web framework changes, but SiteMesh remains constant. Our marketing sucks. Despite it being around for 5 years, most of the Java web app community have never felt the...
http://joe.truemesh.com/blog//000524.html

I've joined Google - (Found July 2, 2008 )

Woooo..... this looks fun.
http://joe.truemesh.com/blog//000600.html

Java and .NET RESTful interoperability with XStream - (Found July 2, 2008 )

My ex-colleagues Paul Hammant and Ian Cartwright have written an article on their experiences of building SOA applications using RESTful services in .NET and Java that could interoperate over web services and message queues. XStream made this possible. Buzzwordtastic. http:www.infoq.comarticlesREST-INTEROP
http://joe.truemesh.com/blog//000623.html
Available Archives
- July (15 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact