public final class Configuration
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DocumentFactoryBuilder |
builder()
To specify custom plugins, initialize document factory with a builder.
|
static DocumentFactory |
configure(java.lang.String path)
Create an instance of a document factory using the provided custom license file.
|
static DocumentFactory |
configure(java.lang.String customer,
java.lang.String license)
Create an instance of a document factory using the provided license information.
|
static DocumentFactory |
factory()
Create an instance of a document factory.
|
public static DocumentFactoryBuilder builder()
public static DocumentFactory factory()
License will be checked from the "templater.lic"
file in the
working directory or the root path in resources.
Resource will be checked using the current thread class loader.
If a license is not found, Templater will run in an unlicensed mode.
To force exception if a license is missing, use configure("templater.lic")
instead.
public static DocumentFactory configure(java.lang.String path)
The specified path will be tested by checking for that path in the working directory. If the path does not exist, a resource lookup will occur via the current thread class loader.
When loading from a resource, the class loader requires an absolute path
(e.g. "org/example/templater.lic"
)
path
- path to license file or resourcepublic static DocumentFactory configure(java.lang.String customer, java.lang.String license)
customer
- license ownerlicense
- license key