The Artima Developer Community
Sponsored Link

Java Buzz Forum
Simplifying inheritance hierarchies using powertypes and Java 5 enums

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Dan Haywood

Posts: 272
Nickname: danhaywood
Registered: Aug, 2009

Dan Haywood is a freelance consultant and the author of "Domain Driven Design using Naked Objects"
Simplifying inheritance hierarchies using powertypes and Java 5 enums Posted: Mar 6, 2010 11:27 AM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Dan Haywood.
Original Post: Simplifying inheritance hierarchies using powertypes and Java 5 enums
Feed Title: Domain Driven Design using Naked Objects
Feed URL: http://danhaywood.com/feed/
Feed Description: Naked Objects is an open source Java framework making it easy to develop domain-driven applications. This blog provides hints and tips to help you get the most out of Naked Objects and its sister projects, extending and supplementing the ideas in Dan's pragprog book of the same name.
Latest Java Buzz Posts
Latest Java Buzz Posts by Dan Haywood
Latest Posts From Domain Driven Design using Naked Objects

Advertisement
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 ...

Read: Simplifying inheritance hierarchies using powertypes and Java 5 enums

Topic: 10 Reasons Not to Adopt Salesforce.com for Customer Relationship Management Previous Topic   Next Topic Topic: Outbrain vs. Disqus : Which is The Best Comment Management Software and Why

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use