On 11/20/05, Ryan McGuinness <[EMAIL PROTECTED]> wrote:
> I have been trying to get betwixt running with the IBM JDK within
> WebSphere. While sifting through the source, I noticed that each
> class that deals with loading classes does something a little
> different. Should there be a Utility class to handle this.

+1

> Also, in more secure containers, it may be a good idea to get the
> class loader a little differently:
> Below is a code snip-it on getting the loader through the Security
> Manager.

why so complicated ? Wouldn't it suffice to first check the context
class loader at the current thread

Thread.currentThread().getContextClassLoader()

is available, and if not, then using the one that loaded the current class

getClass().getClassLoader()

Tom

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

Reply via email to