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]
- Re: JDK 1.1 Garbage Collects all singletons. jon *
- Re: JDK 1.1 Garbage Collects all singleto... Kevin A. Burton
- Re: JDK 1.1 Garbage Collects all singletons. Kevin A. Burton
- Re: JDK 1.1 Garbage Collects all singletons. Dieter Wimberger
- Re: JDK 1.1 Garbage Collects all singletons. Kevin A. Burton
- Proposal: MapBuilders jon *
- Re: Proposal: MapBuilders John McNally
- RE: JDK 1.1 Garbage Collects all singleto... Frank Kim
- Re: JDK 1.1 Garbage Collects all sing... Kevin A. Burton
- Re: JDK 1.1 Garbage Collects all ... Dieter Wimberger
- Santiago Arriaga Noguez
