public class ReasonerFactoryAssembler extends AssemblerBase implements Assembler
If the class is specified by class name then an instance of that class
is acquired by calling its theInstance
method if it
has one. Otherwise a fresh instance is constructed by calling its
zero-argument constructor (and exploding if it hasn't got one).
Thanks to Adam Cimarosti for provoking this code and providing an example implementation.
content, defaultModel, documentManager, fileManager, general, infModel, locationMapper, memoryModel, modelSource, ontModel, ontModelSpec, prefixMapping, reasonerFactory, ruleSet, unionModel
Constructor and Description |
---|
ReasonerFactoryAssembler() |
Modifier and Type | Method and Description |
---|---|
static ReasonerFactory |
getReasonerFactoryByURL(Resource root,
Resource reasonerURL)
Answer a ReasonerFactory which delivers reasoners with the given
URL
reasonerURL . |
Object |
open(Assembler a,
Resource root,
Mode irrelevant)
The core operation: answer a new object constructed according to the
object description hanging from
root , using the assembler
a for any sub-objects. |
getOptionalClassName, getRequiredResource, open, open, openModel, openModel
public Object open(Assembler a, Resource root, Mode irrelevant)
Assembler
root
, using the assembler
a
for any sub-objects. Use mode
to decide
if persistent objects are to be re-used or created; this mode is passed down
to all sub-object construction.open
in interface Assembler
open
in class AssemblerBase
public static ReasonerFactory getReasonerFactoryByURL(Resource root, Resource reasonerURL)
reasonerURL
. If there is no such reasoner, throw
an UnknownreasonerException
.Licenced under the Apache License, Version 2.0