chore: derive class-name strings in main from the class (#6588)

AppSyncVtlEngine registered ReturnDirective with Velocity by a literal
class name, and RequestBodyReader keyed its buffered-body request
property with one. Both now come from the class, so they follow it when
the package moves to io.floci.aws. The values are unchanged today.

Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-26 06:25:38 -04:00
1 parent e8adca56e6
commit 8b05550672
2 files changed
+2 -4

No files matched your search

@@ -64,8 +64,7 @@ public class AppSyncVtlEngine {
engine.setProperty("resource.loader.string.class",
"org.apache.velocity.runtime.resource.loader.StringResourceLoader");
engine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, false);
engine.setProperty("userdirective",
"io.github.hectorvent.floci.services.appsync.graphql.ReturnDirective");
engine.setProperty("userdirective", ReturnDirective.class.getName());
engine.setProperty(RuntimeConstants.MAX_NUMBER_LOOPS, config.services().appsync().vtlMaxLoops());
VtlSandbox.restrictIntrospection(engine);
engine.init();
@@ -18,8 +18,7 @@ public final class RequestBodyReader {
private static final Logger LOG = Logger.getLogger(RequestBodyReader.class);
private static final ObjectMapper CBOR_MAPPER = new ObjectMapper(new CBORFactory());
private static final String BUFFERED_BODY_PROPERTY =
"io.github.hectorvent.floci.services.iam.RequestBodyReader.bufferedBody";
private static final String BUFFERED_BODY_PROPERTY = RequestBodyReader.class.getName() + ".bufferedBody";
private RequestBodyReader() {
}