public static class MultipleParentClassLoader.Builder extends Object
MultipleParentClassLoader only if multiple or no
 ClassLoaders are found in the process. If exactly a single class loader is found,
 this class loader is returned. All class loaders are applied in their collection order.| Constructor and Description | 
|---|
Builder()
Creates a new builder without any class loaders. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
MultipleParentClassLoader.Builder | 
append(Class<?>... type)
Appends the class loaders of the given types. 
 | 
MultipleParentClassLoader.Builder | 
append(ClassLoader... classLoader)
Appends the given class loaders if they were not yet collected. 
 | 
MultipleParentClassLoader.Builder | 
append(Collection<Class<?>> types)
Appends the class loaders of the given types if those class loaders were not yet collected. 
 | 
MultipleParentClassLoader.Builder | 
append(List<? extends ClassLoader> classLoaders)
Appends the given class loaders if they were not yet collected. 
 | 
ClassLoader | 
build()
Returns an appropriate class loader that represents all the collected class loaders. 
 | 
boolean | 
equals(Object other)  | 
MultipleParentClassLoader.Builder | 
filter(ElementMatcher<? super ClassLoader> matcher)
Removes all class loaders that match the given filter. 
 | 
int | 
hashCode()  | 
String | 
toString()  | 
public MultipleParentClassLoader.Builder append(Class<?>... type)
type - The types of which to collect the class loaders.public MultipleParentClassLoader.Builder append(Collection<Class<?>> types)
types - The types of which to collect the class loaders.public MultipleParentClassLoader.Builder append(ClassLoader... classLoader)
classLoader - The class loaders to be collected.public MultipleParentClassLoader.Builder append(List<? extends ClassLoader> classLoaders)
classLoaders - The class loaders to collected.public MultipleParentClassLoader.Builder filter(ElementMatcher<? super ClassLoader> matcher)
matcher - The matcher to be used for filtering.public ClassLoader build()
Copyright © 2014–2015. All rights reserved.