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.
-
-
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 UnitregisterAll()Register all Verbs in the JVM package by walking the class graph. final Set<VerbRef>list()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.
-
-
-
-