Hi,
This is the same question i wanted to ask
here. Thanks u have asked.
Let me tell my idea about this
problem. Only if UserInfo, SomeObject1 , SomeObject2 are derived from a
common base class , I'll have a single
method. Otherwise, its better to
keep it separate for better clarity. I think if your design is proper, you
should have had something like SomeClass1 so that u have minimised methods.
Always its better to expose minimal number of methods but not at the expense of
clarity.
I am
looking forward to more suggestions from people
here..............
Swaminathan
-----Original
Message-----
From: Amarnath P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: help needed !!
From: Amarnath P [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, December 11, 2001 6:46 AM
To: [EMAIL PROTECTED]
Subject: help needed !!
hi folks,Am using SLSB where am having some of the methods exposed to outside world,public ArrayList getListOfProcess (UserInfo user) throws Exception ;public ArrayList getListOfProcess (SomeObject1 id) throws Exception ;public ArrayList getListOfProcess (SomeObject2 id) throws Exception;where these different solves diff. purpose with same method name and return type anddiff. args. The input argument only differs the kind of request. rather than keeping thesethere different kind of methods, can i have a single method like this,public ArrayList getListOfProcess (Object id, Object typeOfRequest) throws Exception;- where the typeOfRequest identifies the request the user looking for.My query is,1. is this will degrade the peroformance of my Component ? if yes means, how& is there any other way to achive the performance ???2. Is this good way to expose the mothods to outside world ?? (rather than keepingmethods to a single)can anybody throw some light on this...thanks in advance.
________________________________________
Amarnath. P
Trigyn Technologies Limited
Ph: 91- 080 - 5528545 / 5523581-588 Extn: 1154
**************************************************************************** This communication contains information, which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any distribution, printing, copying or use of this communication or the information in it is strictly prohibited. If you have received this communication in error, please notify the sender immediately and then destroy any copies of it. ****************************************************************************
