[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parameters in constructor



On Fri, 25 Aug 2000, Fiedler.Raul wrote:
> Hi
> 
> is it possible to have parameters in the constructor for a ozoneObject?
> 
> ex.
> 
> public interface myClass extends OzoneRemote {
> 	myClass(long l); /*update*/
> 	public void sort();
> }
> 
> public class myClassImpl extends OzoneObject implements myClass {
> 	private long myLong;
> 
> 	myClassImpl(long l) { 
> 		myLong = l;
>      }
> 
> 	public void sort () {
> 		do what ever...
>       }	
> }

Yes, this is possible but there are some problems. Have a look at the "Object
Creation in ozone" thread in the mail list archive (08-2000) for more
information. 

Two things are needed to get this working (both discussed in the mentioned
thread):

1. some code that dynamically generates the signature string

2. integration of the callback methods

(again, see the mail list for more info)

I will do 2. Volunteers for 1?


Falko
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com