public class MapBuiltinRegistry extends BuiltinRegistry
This is currently implemented as a singleton to simply any future move to support different sets of builtins.
BuiltintheRegistry| Constructor and Description |
|---|
MapBuiltinRegistry()
Construct an empty registry
|
| Modifier and Type | Method and Description |
|---|---|
Builtin |
getImplementation(String functor)
Find the implementation of the given builtin functor.
|
Builtin |
getImplementationByURI(String uri)
Find the implementation of the given builtin functor.
|
void |
register(Builtin impl)
Register an implementation for a given builtin using its default name.
|
void |
register(String functor,
Builtin impl)
Register an implementation for a given builtin functor.
|
public void register(String functor, Builtin impl)
BuiltinRegistryregister in class BuiltinRegistryfunctor - the name of the functor used to invoke the builtinimpl - the implementation of the builtinpublic void register(Builtin impl)
BuiltinRegistryregister in class BuiltinRegistryimpl - the implementation of the builtinpublic Builtin getImplementation(String functor)
BuiltinRegistrygetImplementation in class BuiltinRegistryfunctor - the name of the functor being invoked.public Builtin getImplementationByURI(String uri)
BuiltinRegistrygetImplementationByURI in class BuiltinRegistryuri - the URI of the builtin to be retrievedLicenced under the Apache License, Version 2.0