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 and
diff. args. The input argument only differs the kind of request. rather than keeping these
there 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 keeping
methods 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

Reply via email to