Just make the constructor private and forget about the exception stuff

>        public MySingleton() throws InstantiationException {
>                 if(Self==null) {
>                         Self=this;
>                 } else {
>                         throw new InstantiationException("Singletons"+
>                                         +" can only instantiated
> once.");
>                 }
>         }//constructor






------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to