On Sun, 2005-05-22 at 10:43 +0000, [EMAIL PROTECTED] wrote:
> Author: skitching

<snip>

> @@ -368,24 +461,48 @@
>          String logClassName = getLogClassName();
>  
>          // Attempt to load the Log implementation class
> +        //
> +        // Question: why is the loginterface being loaded dynamically?
> +        // Isn't the code below exactly the same as this?
> +        //    Class logInterface = Log.class;
> +        

i suspect that the reason it was coded this way is there are some
security gymnastics performed and it's the LogFactory (rather than
LogFactoryImpl) class classloader that is used to load the class. 

i'm not convinced that this actually serves any useful purpose: in the
end the instance created will have to be cast to Log as referenced by
LogFactoryImpl. 

- robert


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

Reply via email to