Yep. Thought I'd fixed that :) Thanks.

On Mon, 25 Nov 2002 [EMAIL PROTECTED] wrote:

> Is the this.clss assignment correct?  Shouldn't it be this.clss = listener?
>
>
>     public Notifier(Class listener) {
>         if(listener == null) {
>             throw new IllegalArgumentException("Illegal to have a null
> listener Class. ");
>         }
>
>         this.clss = clss;
>         // now we check methods, if only one of them, then
>         // let's set it
>         Method[] meths = clss.getDeclaredMethods();
>         if(meths.length == 0) {
>             this.listenerMethod = meths[0];
>         }
>     }
>
>
> Andy
>
>
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to