Advertisement
Nickname
danhaywood
Registered since:
August 20, 2009
Short bio:
Dan Haywood is a UK-based freelance consultant specializing in enterprise application development using domain driven design approaches and agile development. Technology skills include Java, JEE, .NET, Sybase, RDBMS, OOAD, UML, AOP, TDD, Subversion and TFS Dan is a committer and advocate of the Naked Objects framework, and the author of “Domain Driven Design using Naked Objects”, published by the Pragmatic Bookshelf.
Home page:
http://danhaywood.com
Total posts:
272

Forum posts by Dan Haywood:

19 pages [ Previous 1 ... 9 10 11 12 13 14 15 16 17 18 19 Next ]
Posted in Java Buzz Forum, Apr 9, 2010, 12:36 AM
Last time round we simplified an entity inheritance hierarchy, moving the polymorphism into anonymous subclasses of a Java 5 enum. Which is great, but if there's a lot of business logic that's been factored out in this way, it can make the enum itself somewhat unmanageable. Moreover, we ...
Posted in All Buzz Forum, Mar 23, 2010, 12:58 AM
My last blog post, about pushing behaviour onto enum subclasses, got quite a few votes on dzone. Interestingly, about a third voted the post down, not up - though no-one left any comment to explain why they thought it was a bad idea. So, here's another example of using this ...
Posted in Java Buzz Forum, Mar 23, 2010, 12:58 AM
My last blog post, about pushing behaviour onto enum subclasses, got quite a few votes on dzone. Interestingly, about a third voted the post down, not up - though no-one left any comment to explain why they thought it was a bad idea. So, here's another example of using this ...
Posted in All Buzz Forum, Mar 6, 2010, 7:27 PM
Having seen how to teach Naked Objects to support Java 5 enums directly, let's use this new capability to avoid inheritance hierarchies in entities using powertypes. Typically we use inheritance as a way of achieving polymorphism: different behaviours for different types. For example, in the Library example we have CDs ...
Posted in Java Buzz Forum, Mar 6, 2010, 7:27 PM
Having seen how to teach Naked Objects to support Java 5 enums directly, let's use this new capability to avoid inheritance hierarchies in entities using powertypes. Typically we use inheritance as a way of achieving polymorphism: different behaviours for different types. For example, in the Library example we have CDs ...
Posted in All Buzz Forum, Feb 28, 2010, 9:26 AM
In the previous post we saw how to write a FacetFactory so that Naked Objects treats enums as value types. Let's now complete the story by also showing how to provide drop-down lists for any properties or action parameters of that type. We'll start by defining a new ChoicesFacet, to ...
Posted in Java Buzz Forum, Feb 28, 2010, 9:26 AM
In the previous post we saw how to write a FacetFactory so that Naked Objects treats enums as value types. Let's now complete the story by also showing how to provide drop-down lists for any properties or action parameters of that type. We'll start by defining a new ChoicesFacet, to ...
Posted in All Buzz Forum, Feb 27, 2010, 1:27 PM
In the previous posts we've seen how to simulate enums in Naked Objects 4.0. But it'd be nice if Naked Objects supported enums natively. So let's see how, half in this post and half in the one that follows. What we're going to do here is to extend the ...
Posted in Java Buzz Forum, Feb 27, 2010, 1:27 PM
In the previous posts we've seen how to simulate enums in Naked Objects 4.0. But it'd be nice if Naked Objects supported enums natively. So let's see how, half in this post and half in the one that follows. What we're going to do here is to extend the ...
Posted in All Buzz Forum, Feb 27, 2010, 9:26 AM
In my last post I showed how to simulate enums, and then Giorgio asked in the comments as to how this fits in with the choices() method, used to provide a drop-down list of values. To start with, let's add an all() method to StockType: import org.nakedobjects.applib.DomainObjectContainer; public class StockType extends EnumeratedAbstract { ...
Posted in Java Buzz Forum, Feb 27, 2010, 9:26 AM
In my last post I showed how to simulate enums, and then Giorgio asked in the comments as to how this fits in with the choices() method, used to provide a drop-down list of values. To start with, let's add an all() method to StockType: import org.nakedobjects.applib.DomainObjectContainer; public class StockType extends EnumeratedAbstract { ...
Posted in All Buzz Forum, Feb 24, 2010, 1:03 AM
One thing that Naked Objects 4.0 doesn't yet support is Java 5-style enums. We think we know what we need to do to support it (I guess that will be 4.1), but for now let me offer you a way to get the same general effect. Let's make this concrete ...
Posted in Java Buzz Forum, Feb 24, 2010, 1:03 AM
One thing that Naked Objects 4.0 doesn't yet support is Java 5-style enums. We think we know what we need to do to support it (I guess that will be 4.1), but for now let me offer you a way to get the same general effect. Let's make this concrete ...
Posted in All Buzz Forum, Feb 11, 2010, 6:30 PM
Here in the UK we have the ability to petition our prime minister. So Rob Bowley has set up an e-petition asking the government to review how IT systems are procured. In essence: please stop wasting money by using agile development processes, rather than waterfall. So, if you ...
Posted in Java Buzz Forum, Feb 11, 2010, 6:30 PM
Here in the UK we have the ability to petition our prime minister. So Rob Bowley has set up an e-petition asking the government to review how IT systems are procured. In essence: please stop wasting money by using agile development processes, rather than waterfall. So, if you ...
19 pages [ Previous 1 ... 9 10 11 12 13 14 15 16 17 18 19 Next ]
Advertisement