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