Decorator Design Pattern Use With Service Objects (wSingleton)

Posted by Dustin on Stack Overflow See other posts from Stack Overflow or by Dustin
Published on 2009-05-23T17:57:14Z Indexed on 2010/05/29 15:02 UTC
Read the original article Hit count: 176

I'm working on a project where I need to add some functionality to a service object and using a decorator to add it in seems like a good fit. However, I've only ever used decorators with simple beans, never on a singleton like a service object. Has anyone ever done this before and what are the pros and cons? In this case I don't think creating a subclass will work so a decorator seems to be a good fit. What are your thoughts on doing this?

© Stack Overflow or respective owner

Related posts about design-patterns

Related posts about coldfusion