public static final class Asciidoctor.Factory
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Asciidoctor |
create()
Creates a new instance of Asciidoctor.
|
static Asciidoctor |
create(java.lang.ClassLoader classloader)
Creates a new instance of Asciidoctor and sets a specific classloader for the JRuby runtime to use.
|
static Asciidoctor |
create(java.lang.ClassLoader classloader,
java.lang.String gemPath)
Creates a new instance of Asciidoctor and sets a specific classloader and gempath for the JRuby runtime to use.
|
static Asciidoctor |
create(java.util.List<java.lang.String> loadPaths)
Creates a new instance of Asciidoctor and sets loadPath to provided paths.
|
static Asciidoctor |
create(java.util.List<java.lang.String> loadPaths,
java.lang.String gemPath)
Creates a new instance of Asciidoctor and sets loadPath to provided paths.
|
static Asciidoctor |
create(java.lang.String gemPath)
Creates a new instance of Asciidoctor and sets GEM_PATH environment
variable to provided gemPath.
|
public static Asciidoctor create()
public static Asciidoctor create(java.lang.String gemPath)
gemPath - where gems are located.public static Asciidoctor create(java.util.List<java.lang.String> loadPaths)
loadPaths - where Ruby libraries are located.public static Asciidoctor create(java.lang.ClassLoader classloader)
Asciidoctor asciidoctor = Asciidoctor.Factory.create(Arrays.asList("uri:classloader:/gems/asciidoctor-1.5.8/lib"));
classloader - public static Asciidoctor create(java.lang.ClassLoader classloader, java.lang.String gemPath)
Asciidoctor asciidoctor = Asciidoctor.Factory.create(Arrays.asList("uri:classloader:/gems/asciidoctor-1.5.8/lib"));
classloader - gemPath - public static Asciidoctor create(java.util.List<java.lang.String> loadPaths, java.lang.String gemPath)
loadPaths - where Ruby libraries are located.gemPath - where gems are located.