The Artima Developer Community
Sponsored Link

What about aggregation ?

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

What about aggregation ?

Posted by Krishna Sankar on 26 Oct 1998, 6:09 AM

Hi,

What about aggregation ? Is it not the other side of composition ? I view aggregartion as holding a reference to an object which exist outside the current object, otherwise same as composition.

Couple of good thigs happen here:

1. Performance hit might be reduced as the object is already created

2. More importantly, it can do distributed processing ! The aggregated object need not me in the same namespace of the aggregator !(Pardon the nouns). Try to do this with inheritence !

I think, when we talk about composition, we should consider aggregation also especially in this age of distributed computing.

cheers



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us