Package xyz.block.ftl.registry
Class Registry
-
- All Implemented Interfaces:
public final class RegistryFTL module registry.
This will contain all the Verbs that are registered in the module and will be used to dispatch requests to the appropriate Verb. It is also used to generate the module schema.
-
-
Field Summary
Fields Modifier and Type Field Description private final StringmoduleNameprivate final List<VerbRef>refsprivate final StringjvmModuleName
-
Method Summary
Modifier and Type Method Description final StringgetModuleName()final List<VerbRef>getRefs()final StringgetJvmModuleName()final Unitregister(KClass<out Object> klass)Register all Verbs in a class. final UnitregisterAll()Register all Verbs in the JVM package by walking the class graph. final Set<VerbRef>list()final Booleanhas(VerbRef verbRef)final Stringinvoke(Context context, VerbRef verbRef, String request)Invoke a Verb with JSON-encoded payload and return its JSON-encoded response. -
-
Constructor Detail
-
Registry
Registry(String jvmModuleName)
-
-
Method Detail
-
getModuleName
final String getModuleName()
-
getJvmModuleName
final String getJvmModuleName()
-
registerAll
final Unit registerAll()
Register all Verbs in the JVM package by walking the class graph.
-
-
-
-