About

Personal Photo Location :
Cleveland,OH,USA

Origins :
Manchester, UK

I've been developing software for over 15 years working in Delphi and now Java. This site is a home for my open source projects, writings, articles and tutorials mainly focusing on Java and Java EE.

Archives

By Andy Gibson • February 25th, 2010 • in Lost 2 Comments

Bring out yer dead!

At various points throughout the show, there have been numerous dead bodies and with it, a strong urge to bury the dead. Consider even when Rousseau and Karl were shot by Mercenaries, they took the time to bury the bodies, and it’s not like their arrival was going to be a secret for long. in LaFleur, when Sawyer and Juliet killed the others attacking Amy, they had to bury the bodies in accordance with The Truce. Now this might be a way to hide the killings, but it also may mean that any dead bodies must be buried. After The Purge, the bodies were put in a shallow grave, but not covered.
(more…)

Using composition over inheritance is a common design pattern that is often discussed in terms of designing business logic components. However, composition can solve a number of problems in domain object modeling that are created by relying on inheritance to share interface or functionality. Composition is used to delegate implementation in logical units by enlisting the help of a reference to an object that implements the required functionality instead of inheriting from it. This reference can be changed to different implementations depending on the needs at the time making for a more flexible design. This same design can be used in domain modeling to overcome some of the problems caused by inheritance. The typical flawed example of using inheritance in object modeling is the Person class which is often subclassed into Employee, User , Customer and Vendor classes.
(more…)

By Andy Gibson • February 14th, 2010 • in News No Comments

Dan Allen posted that the latest CR version of Weld is available. This should contain a number of bug fixes from the initial release of Weld, including the two problems I had with the request scope being available in EJB timeouts and problems with the ability to proxy stateless beans. This last bug was for me rather crucial since there was no easy way to implement DAO (just data management) type components with transactional annotations that could be injected into business logic beans. Without that, you end up having to write your own transaction handling code.

Also in the comments of the announcement, Max Anderson notes that the nightly builds of JBoss Tools 3.1 now supports CDI auto completion and JSF 2.0. I had a very quick look at it yesterday and it looks promising. I also tried it out with the latest JBoss 6 snapshot and am very pleased to say that the redeployment times on JBoss 6 are much faster and more in line with the performance on Glassfish which is something I have raved about.

I’ll be looking at it some more and probably write up a couple of tutorial posts.

By Andy Gibson • February 13th, 2010 • in Lost No Comments

By now, the repetitions that we have seen across several seasons are coming thick and fast, another Lostie faces a ‘test’ and fails, Kate almost ends up delivering Claires baby, Sayid is strapped to a bed and electrocuted and tortured and we have another woman who comes to the Island pregnant, delivers a baby which is stolen and then she goes a delightful mix of crazy feral. When Kate tells Sawyer she never should have come after him, Sawyer asks “Which time?”. Even the characters are pointing out the repetition.
(more…)