com.alibaba.druid.support.logging
类 Resources

java.lang.Object
  继承者 com.alibaba.druid.support.logging.Resources

public final class Resources
extends Object

A class to simplify access to resources through the classloader.


方法摘要
static Class<?> classForName(String className)
          Loads a class
static ClassLoader getDefaultClassLoader()
          Returns the default classloader (may be null).
static void setDefaultClassLoader(ClassLoader defaultClassLoader)
          Sets the default classloader
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

getDefaultClassLoader

public static ClassLoader getDefaultClassLoader()
Returns the default classloader (may be null).

返回:
The default classloader

setDefaultClassLoader

public static void setDefaultClassLoader(ClassLoader defaultClassLoader)
Sets the default classloader

参数:
defaultClassLoader - - the new default ClassLoader

classForName

public static Class<?> classForName(String className)
                             throws ClassNotFoundException
Loads a class

参数:
className - - the class to load
返回:
The loaded class
抛出:
ClassNotFoundException - If the class cannot be found (duh!)


Copyright © 2013 Alibaba Group. All Rights Reserved.