Hi
Suppose i have a class, which required 3 parameters to
do some process, out of 3 parameters 2 are standard
and only one changes depending upon the process.
I dont want to hard code those 2 values since these
can be change (this is not a web application so i
cannot use session)
What i want to do is create one instance of this class
with the constant parameters setup, 
So a sort of Singleton pattern, 
This class will have no knowledge to read those 2
parameters, and have to be supplied by some other
class

How will be design this class, 

my class example
public class GetData
{
  private String parm1, parm2;
  public GetData(String parm1, String parm2)
   {
     this.parm1 = parm1;
     this.parm2 = parm2;
   }

  public void doSomeThing(String parm3)
   {
        // do some logic here
   }


}

ashish


                
__________________________________ 
Do you Yahoo!? 
All your favorites on one personal page – Try My Yahoo!
http://my.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to