I have a business case where I need to take a basic business object and add
new properties to it at run time via a series of admin user interfaces. The
only way I have come up with to do this is to have the business object
maintain a collection of "properties" that would then have a get / set
method based upon the property name - like user.getProperty('firstName').
Something does not seem quite right about this as the business object would
not know what properties it did or did not have, would not be able to
perform any checks based upon those properties, and it would be up to the
calling code to know to request the right property.
I have gone through my book of design patterns, but nothing seems to fit
here. Does anybody know of a different / better way to approach this?
Thanks
-- Jeff
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293109
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4