Re: [OT] a design question.. have a look at this class

2005-01-26 Thread Ashish Kulkarni
Hi My problem is that the class which will need this helper class does not know the values of param1 and param2, and so cannot create the Instance as if it is a java bean, these param1 and param2 values are only know by the initialization class. this is what i have come up with public class GetData

Re: [OT] a design question

2005-01-25 Thread Eddie Bush
I tend to follow the JavaBeans conventions: public class GetData { private String param1; private String param2; public GetData() { } public GetData(String param1, String param2) { setParam1(param1); setParam2(param2); } public String getParam1() { return param1; }

[OT] a design question

2005-01-25 Thread Ashish Kulkarni
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