public interface ClassLoaderBuilder
ClassLoader for loading a class by name.| Modifier and Type | Method and Description |
|---|---|
ClassAccessor<?> |
loadWith(ClassLoader classLoader)
Use a custom
ClassLoader for loading the class. |
ClassAccessor<?> |
loadWithBeanUtilsClassLoader()
Use the class loader that loaded
org.apache.commons.beanutils2.BeanUtils2 to load the class. |
ClassAccessor<?> |
loadWithThreadContextClassLoader()
Use the class loader of the currently executing thread for loading the class.
|
ClassAccessor<?> loadWithThreadContextClassLoader()
Thread.currentThread().getContextClassLoader().ClassAccessor wrapping the loaded class.BeanClassNotFoundException - no class with the given could be found.ClassAccessor<?> loadWithBeanUtilsClassLoader()
org.apache.commons.beanutils2.BeanUtils2 to load the class.ClassAccessor wrapping the loaded class.BeanClassNotFoundException - no class with the given could be found.ClassAccessor<?> loadWith(ClassLoader classLoader)
ClassLoader for loading the class.classLoader - the ClassLoader to load the class. Must not be null!ClassAccessor wrapping the loaded class.BeanClassNotFoundException - no class with the given could be found.Copyright © 2012–2014 The Apache Software Foundation. All rights reserved.