deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Struberg <strub...@yahoo.de>
Subject Re: Can we remove this comment ?
Date Wed, 12 Sep 2012 09:59:28 GMT
Sure, go on!

LieGrue,
strub




----- Original Message -----
> From: Charles Moulliard <ch007m@gmail.com>
> To: deltaspike-dev@incubator.apache.org
> Cc: 
> Sent: Wednesday, September 12, 2012 10:38 AM
> Subject: Can we remove this comment ?
> 
> Hi,
> 
> In the ClassUtils of deltaspike core module, there is a mention of a
> myfaces.jar file, can we remove it ?
> 
> /**
> * Loads class for the given name
> * @param name name of the class
> * @return loaded class
> * @throws ClassNotFoundException if the class can't be loadedx@
> */
> public static Class loadClassForName(String name) throws
> ClassNotFoundException
> {
>     try
>     {
>         // Try WebApp ClassLoader first
>         return Class.forName(name, false, // do not initialize for faster
> startup
>                 getClassLoader(null));
>     }
>     catch (ClassNotFoundException ignore)
>     {
>         // fallback: Try ClassLoader for ClassUtils (i.e. the myfaces.jar
> lib)
>         return Class.forName(name, false, // do not initialize for faster
> startup
>                 ClassUtils.class.getClassLoader());
>     }
> }
> 
> Regards,
> 
> -- 
> Charles Moulliard
> Apache Committer / Sr. Pr. Consultant at FuseSource.com
> Twitter : @cmoulliard
> Blog : http://cmoulliard.blogspot.com
> 

Mime
View raw message