com.univocity.api
Class Builder
java.lang.Object
com.univocity.api.Builder
public final class Builder
- extends Object
This is the entry point to univocity's internal implementation classes. It connects the resources in the public API to their actual implementations in univocity's jars.
In some circumstances, you might need to configure the class loader before being able to obtain instances of CommonFactoryProvider from univocity.jar.
If that is the case, use the setClassLoader(ClassLoader) method before calling the build(Class, Object...)} method.
- Author:
- uniVocity Software Pty Ltd - dev@univocity.com
|
Method Summary |
static
|
build(Class<T> builderType,
Object... args)
Creates a new instance of the given type, using the given arguments |
static void |
setClassLoader(ClassLoader classLoader)
Defines the class loader to be used to load uniVocity implementation classes (from univocity.jar) |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Builder
public Builder()
setClassLoader
public static final void setClassLoader(ClassLoader classLoader)
- Defines the class loader to be used to load uniVocity implementation classes (from univocity.jar)
- Parameters:
classLoader - The class loader to be used to load provider classes, or null if the system class loader is to be used.
build
public static final <T> T build(Class<T> builderType,
Object... args)
- Creates a new instance of the given type, using the given arguments
- Type Parameters:
T - the type of the object that will be returned by this method.- Parameters:
builderType - the type whose instance must be createdargs - the arguments to be used by the concrete implementation of the given type.
- Returns:
- an instance of the given type.
Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.