Exforsys

Online Training

Collecting Parameter

This is a discussion on Collecting Parameter within the Software Patterns forums, part of the Testing category; Hello, In a workflow application where in the workflow is customizable, i would like to defer the instantiation of the ...


Go Back   Exforsys > Testing > Software Patterns

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-01-2005, 09:28 PM
danths
 
Posts: n/a
Collecting Parameter

Hello,
In a workflow application where in the workflow is customizable, i
would like to defer the instantiation of the class till the workflow is
complete. e.g.

class ClassA {
object1 objA;
object2 objB;
object3 obj3;
ClassA( object1 v1, object2 v2, object3 v3)
{
object1 = v1;
...
object3 = v3;
}

}

Any of the above three member variables could be instantiated first and
hence there are nine combinations. The three member variables are being
instantiated in three diferent forms in a wizard like app.

Since I wanted to keep the model seperate from the view, how could I
defer the instantiation of the ClassA but still keep the controller
generic enough so that the order in which the member varibles are
collected is not sequenced. I read that "Collecting Parameter" pattern
supports something similar to this, however I am not too sure since I
couldn't find the right examples. BTW: I am writing this in C# and so
any other alternatives are welcome as well.

Thanks
sd

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 07:32 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.