incubator-deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Moulliard <ch0...@gmail.com>
Subject Can we remove this comment ?
Date Wed, 12 Sep 2012 08:38:45 GMT
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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message